网络爬虫之Selenium使用代理登陆:爬取透明售房网二手房网站
一些说明:
-
python3
-
使用selenium模拟浏览器登陆,获取相关html。
cmd命令行输入:
pip install -r requirements.txt
下载地址: https://sites.google.com/a/chromium.org/chromedriver/home
下载完成后运行.exe文件
将exe文件添加到环境变量Path
下载地址:https://github.com/mozilla/geckodriver/releases
解压后放到firefox安装路径下面
python tmsfwSpider.py
运行结果自动保存在当前路径下
python html_parser.py
python map.py
5.2 生成图片(http://lbsyun.baidu.com/jsdemo.htm#c1_19)
参考博客 https://www.jianshu.com/p/1a9531d2f153