examples-of-web-crawlers/2.天猫商品数据爬虫(已模拟登录)
Acfboy df6c4b903e
Update tmall_crawler.py
当商品数量太少时会出错
加入错误判断
2019-08-01 14:36:16 +08:00
..
README.MD revise the tmall_crawler.py 2019-03-13 15:46:20 +08:00
example.gif revise the example.gif 2019-03-13 15:21:28 +08:00
example2.png revise the tmall_crawler.py 2019-03-13 15:46:20 +08:00
tmall_crawler.py Update tmall_crawler.py 2019-08-01 14:36:16 +08:00

README.MD

天猫商品数据爬虫

使用教程

  1. 点击这里下载下载chrome浏览器
  2. 查看chrome浏览器的版本号点击这里下载对应版本号的chromedriver驱动
  3. pip安装下列包
  • pip install selenium
  • pip install pyquery
  1. 点击这里登录微博,并通过微博绑定淘宝账号密码
  2. 在main中填写chromedriver的绝对路径
  3. 在main中填写微博账号密码
	#改成你的chromedriver的完整路径地址
    chromedriver_path = "/Users/bird/Desktop/chromedriver.exe" 
    #改成你的微博账号
    weibo_username = "改成你的微博账号"
    #改成你的微博密码
    weibo_password = "改成你的微博密码"

演示图片