Git Product home page Git Product logo

fly51fly_aicoco's Introduction

fly51fly_aicoco

“爱可可-爱生活”微博内容按月分享

fly51fly微博内容简介

微博账号@爱可可-爱生活是数据科学圈的网红,因每天分享大量精选的数据科学领域的学习资料而出名,深受粉丝关注和喜爱。该账号每天从早晨4-5点开始发微博,日均发布大几十条原创。目前爱可可老师已经发布几万条微博,移动端不利于查看,我希望能爬下来浏览。

分享内容

通过weibo.cn查找微博用户“爱可可-爱生活”,获取其userid

爱可可-爱生活  :1402400261

我们将利用微博爬虫项目github.com/dataabc/weiboSpider,按月爬取“爱可可-爱生活”微博,分享到github来。由于微博的反爬虫限制,不能一下全爬完,将会不定期更新。

爬虫配置

使用github.com/dataabc/weiboSpider

git clone https://github.com/dataabc/weiboSpider.git
cd weiboSpider
pip install -r requirements.txt

修改默认的config.json为以下:

{
    "user_id_list": ["1402400261"],
    "filter": 1,
    "since_date": "2020-06-01",
	"end_date": "2020-6-30",
    "write_mode": ["csv", "txt"],
    "pic_download": 0,
    "video_download": 0,
    "cookie": "your cookie"
}

删掉部分字段

如果不想看见微博位置、发布工具、转发数、评论数可以这样过滤:

sed -e "/\(微博位置\|发布工具\|转发数\|评论数\)/d" 2020-5/1402400261_2020_5.txt

为节省空间和方便搜索,本仓库只包含文本。平时可以用第三方微博客户端Share在手机上查看原微博,Share的高级版具有按时间轴查看的功能。

声明

我们不生产知识,我们只是知识的搬运工。

参考资料

fly51fly_aicoco's People

Contributors

dae86 avatar twopothead 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.