Giter Club home page Giter Club logo

weibocar's Introduction

weiboCAR

##安装环境

1.python 2.7

2.win7(暂时未在OS系统里测试过,不过应该没有什么问题)

##依赖包

1.scrapy(安装:pip install scrapy)

2.beautifulSoup(安装:pip install beautifulsoup)

##使用方法:

1.在cookies.py里填上微博账号和密码;

myWeiBo = [
    {'no': '用户名1填这里', 'psw': '密码1填这里'},
    {'no': '用户名2填这里', 'psw': '密码2填这里'},
]

2.在settings里WEIBO_IDS填上要抓的微博的ID;

WEIBO_IDS = ["Ehf8SdHyq"]   #微博ID填在这里

什么叫微博ID,比如http://weibo.com/1932835417/Ei8uMnP44?ref=home&rid=0_0_8_2596589918405690045, 在这个微博链接里,微博ID是 Ei8uMnP44

3、在文件夹路径下,执行

scrapy crawl weiboCAR -a method=[参数]

[参数] 可以为repost(只抓转发),comment(只抓评论),attitude(只抓点赞),all(前面三种都抓)。

如:

scrapy crawl weiboCAR -a methon=all

weibocar's People

Contributors

terry2tan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

weibocar's Issues

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.