作者unhumanWu (阿文)
看板Python
标题[问题]爬虫如何模拟使用者点击页数
时间Sat Feb 10 16:54:50 2018
大家好,初学爬虫
最近需要爬取公路总局的桥梁资料
https://www.thb.gov.tw/sites/ch/modules/riverbridge/riverbridge_list?node=2ce5a277-2810-4171-8b52-1853b3f6f784
第一页可用get拿到资料
https://imgur.com/RvW8h0g
https://imgur.com/dLhaAWv
https://imgur.com/fkFV3iJ
其他页数用post拿到资料
用这方法可拿到1~5页加第6页(点击一次的范围 ex.”1”, “2” “…” etc)
第7页以後因为需要点击两次,不知道该怎麽写
( “…” + “7” or “…” + “8” etc)
想问一下模拟使用者点击2次以上该怎麽写啊?
感恩!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 220.136.46.214
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1518252893.A.1A6.html
1F:→ Kazimir: 他不是有一个->箭头吗? 02/10 21:20
2F:→ Kazimir: 而且有需要送...吗? 不能直接送页数吗? 02/10 21:21
3F:推 TitanEric: selium 02/10 21:22
4F:→ rrty: selnium 02/10 22:40
5F:→ rrty: selenium 02/10 22:40
6F:推 jn8029: Selenium 02/11 06:13
好喔,感谢大大
※ 编辑: unhumanWu (220.136.38.43), 02/12/2018 08:29:03