Giter Site home page Giter Site logo

crawl_zhihu_avatar's Introduction

crawl_zhihu_avatar

爬知乎妹子头像

利用知乎app的api抓头像

逻辑:

  1. 获得当前登录账号关注的所有用户
  2. 取出他们的id和头像url, 下载头像
  3. 把刚刚获取到的user_id加到一个队列, 然后获取这个人关注的所有用户
  4. 回到第二步循环

遇到的坑:

  1. 已爬过的用户id去重, 通过文件名判断不重复下载头像
  2. 这个脚本是通过协程去爬api, 知乎对请求次数做了限制, 下载了1000多个头像我的号就被封了😂.

crawl_zhihu_avatar's People

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.