Pandaaaa906

html_bs_xpath

Jan 26th, 2021 (edited)
836
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html lang="utf-8">
  2.  
  3. <body>
  4. <p>Product Page</p>
  5. <table>
  6.     <tbody>
  7.     <tr>
  8.         <th>Key1:</th>
  9.         <td>value1</td>
  10.     </tr>
  11.     <tr>
  12.         <th>Key2:</th>
  13.         <td>value2</td>
  14.     </tr>
  15.     <tr>
  16.         <th>Key3:</th>
  17.         <td>value i don't need</td>
  18.     </tr>
  19.     <tr>
  20.         <th>Key4:</th>
  21.         <td>value <sup>has</sup> many <sub>sub tags</sub></td>
  22.     </tr>
  23.     <tr>
  24.         <th>Key5:</th>
  25.         <td>value that i need<span>but i don't need this</span></td>
  26.     </tr>
  27.     </tbody>
  28. </table>
  29. </body>
  30. </html>
RAW Paste Data