GithubHelp home page GithubHelp logo

weibospider's Introduction

新浪微博爬虫

此开源项目是用Python3.6编写的新浪微博爬虫,包含登录与微博正文爬取功能,爬取后的资源保存在本地磁盘中。 感兴趣的朋友可在公众号ApeClub上找到对应代码的解读。

此项目诞生于本人Python的入门学习,也算是Python网络爬虫开发实战的第一步 ,希望志同道合的朋友们能一起从此开启Python爬虫,Python数据分析与机器学习实战之旅

运行

运行前请使用下面命令安装依赖库

pip3 install -r requirement.txt
  1. 通过修改settings.py文件中的ACCOUNT与PASSWORD来设置微博登录账号。
  2. 通过修改settings.py文件中的SID来设置爬取的博主。

上面设置完毕后,可以在命令行中直接执行main.py文件

./main.py

python3 main.py

保存文件目录

.
├── cookies
├── resource
│   ├──{sid}
│   │   ├──{time}
│   │   │   ├──image
│   │   │   └──title.txt
│   │   ├──{time}
│   │   │   ├──image
│   │   │   └──title.txt
│   │   └──{time}
│   │       ├──image
│   │       └──title.txt
│   ├──{sid}
│   │   ├──{time}
│   │   │   ├──image
│   │   │   └──title.txt
│   │   ├──{time}
│   │   │   ├──image
│   │   │   └──title.txt
│   │   └──{time}
│   │       ├──image
│   │       └──title.txt
...

参考资料

  1. 《Python 3网络爬虫开发实战》 崔庆才 著

更多技术咨询请关注我们的公众号平台,微信搜索ApeClub,或扫描下方二维码

weibospider's People

Contributors

nthpower avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

weibospider's Issues

Follow the Step-by-Step Guide to Claim Your Tokens! 📌

Introduction:

Welcome to the exciting world of crypto airdrops! Here's a curated list of active airdrops that you wouldn't want to miss. Dive in and explore the opportunities:

📌 Follow the Step-by-Step Guide to Claim Your Tokens!

  1. Share on Social Media:

    🚀 Claim Your Share: Pyth Network Airdrop 🚀 Unlock the potential of $PYTH tokens in this step-by-step guide. Claim yours now! Share on Twitter

    — Pyth Network (@pythnetwork) November 28, 2023
  2. Verify Eligibility:
    After sharing and connecting your walle

Active Airdrops:

  1. Layer Zero Airdrop

    Layer Zero Banner
  2. Pyth Network Airdrop

    Pyth Network Banner
  3. Mantle Network Airdrop

    Mantle Network Banner

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.