爬虫经典面试题
網(wǎng)站:http://datamining.comratings.com/exam
如何抓取10個ip,這題很經(jīng)典
先查看網(wǎng)頁源代碼,啥也沒有
<iframe src="/exam2" frameborder="no" width="750" height="500"></iframe>看不懂就抓包
可以看到經(jīng)過了3次請求,最后在http://datamining.comratings.com/exam3中得到數(shù)據(jù),現(xiàn)在注意resquesr中的hearder傳入的參數(shù)
那就先請求一次,第二次帶上hearders
總結(jié)
- 上一篇: sklearn数据预处理
- 下一篇: A是图纸上几个钢筋焊在一起的骨架,123