Advertisement
pusatdata

Grab Web Menggunakan WP Web Scraper

Aug 17th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. WP Web Scraper: https://wordpress.org/plugins/wp-web-scrapper/
  2.  
  3. Contoh cara mengambil selector:
  4. ===============================
  5. <tr>
  6. <td width="150" class="TitleLeft">Kode Lelang</td>
  7. <td colspan="3" class="horizLine"><b>1316330</b></td>
  8. </tr>
  9. <tr>
  10. <td class="TitleLeft">Nama Lelang </td>
  11. <td colspan="3" class="horizLine">
  12. <b>
  13. <strong>PENGAWASAN/SUPERVISI KEGIATAN FISIK TAHUN 2016</strong>
  14. </b>
  15. </td>
  16. </tr>
  17. <tr>
  18.  
  19. Kodenya:
  20. ========
  21.  
  22. Here is the solution to target the title is selector="tr:nth-child(2) td.horizLine b strong":
  23.  
  24. [wpws url="http://lpse.dephub.go.id/eproc/lelang/view/33737114" selector="tr:nth-child(2) td.horizLine b strong"]
  25.  
  26. With :nth-child(2) I am targeting the 2nd <tr> html element.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement