Coder Social home page Coder Social logo

weibospider's Introduction

微博爬虫 WeiboSpider

Author: gpxlcj
**Update time:**2015.05.07

Description

A spider to catch the microblog data from weibo.
The data can be crawled by time, keywords and so on.the data field can be customed to catch.
中文详细信息 WeiboSpider wiki
Detail info in English WeiboSpider wiki
The summarize of each scripts:

main.py start script
settings.py the configure file
weibo_api.py get info via weibo api
save.py save data
login.py account login
base.py base function
spider.py catch weibo data
convert_shp.py convert to shp data

ENVIRONMENT

  • Python 2.7.6
  • rsa 3.1.4
  • requests 2.5.3
  • openpyxl 2.2.0
  • pyshp 1.2.1

EXAMPLE

You can custom the main.py to design your spider. Get the information from Introduction

#! -*- coding:utf-8 -*-
from login import wblogin
from base import init_env
import json

if __name__ == "__main__":
    init_env()
    log = json.dumps(wblogin(USERNAME, PASSWORD), ensure_ascii=False)

weibospider's People

Contributors

gpxlcj avatar

Stargazers

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

Watchers

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