Code Monkey home page Code Monkey logo

tb1688's Introduction

tb1688

淘宝1688采购批发网站https://www.1688.com/ 爬虫,爬取商品原价以及批发价格等相关信息。

1、爬虫涉及:

requests请求,随机UA,随机代理ip,cookie登陆,多进程爬取,xpath解析,保存至mongoDB。

2、关于代理

网上很多免费的代理都不太稳定,付费又觉得没有必要,这里使用的是别人维护好了代理池,感觉还是比较好用的。

3、运行

运行爬虫程序之前,先要运行proxy_pool-master路径下的代理,运行方法可以参考文件里面的readme文档,或者访问https://github.com/jhao104/proxy_pool ;代理运行好之后再打开config.py文件,赋值KEYWORD,添加用户登陆后的COOKIE即可。

最后感谢一下代理池的原作者https://github.com/jhao104/

tb1688's People

Contributors

know1ng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.