Giter Site home page Giter Site logo

python-crawlers's Introduction

Python爬虫实践

利用requests, BeautifulSoup, lxml等库爬取豆瓣、糗事百科、知乎等网站信息.

  • 2018/2/9 新增豆瓣音乐TP250爬虫

  • 2018/2/11 新增简书网30日信息爬虫 以及bug文档

  • 2018/2/20 新增拉钩网爬虫。拉钩网用了Ajax技术,通过构造post参数来获得不同页面信息,将其储存在MongoDB数据库中。  注意:headers信息要写全,如果不能获得信息或提示“请求过于频繁”可能是因为headers没有包含referer这个参数。

  • 2018/2/20 新增微博热门。白天巧合的构造出了url,晚上想重做一遍怎么都做不出来了。。代替方法是用在chrome中选择移动端,request get到response,从       response中提取文字。headers就是正常的user-agent和cookie. 微博反爬虫做的有点强,还是说我没领悟到?网页版基本热门爬不出来。。

urls = ['https://m.weibo.cn/api/container/getIndex?containerid=102803&since_id={}'.format(i) for i in range(1,52)]
#记住这个地址。。

python-crawlers's People

Contributors

dabaitudiu avatar

Stargazers

 avatar  avatar

Watchers

 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.