Skip to main content

scrapy模拟淘宝登陆,未加代理ip的处理。希望有好的代理处理方法分享出来。.

Project description

scrapy-taobao

scrapy模拟淘宝登陆,未加代理ip的处理。希望有好的代理处理方法分享出来。

确保安装了scrapy。

self.http_user = 'xxxxxxxx'   # taobao username
self.http_pass = 'xxxxxxxx'   # taobao password

记得修改taobao_spider.py中的用户名username和密码password。<br>

运行命令

scrapy crawl taobao

如果用户登陆需要输入验证码,则会自动打开验证码的图片链接让客户手动输入,输入错误会重新打开验证码的图片链接供用户再次输入。

登陆成功的提示

login-success, get user nick: ["user nick"]

用户看到这句代表登陆成功,可以进行一些其他数据的提取。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrapy_taobao-1.1.5.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

scrapy_taobao-1.1.5-py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page