Giter Club home page Giter Club logo

tiebacrawler's Introduction

TiebaCrawler

A web crawler written in python to crawl information from posts on tieba.baidu.com.

Recommended dependency

Platform Version
Windows 2.7.6
Linux 2.7.3

For Windows Users

  • Python 2.7.6 Downloads
  • To learn how to run a python program on Windows, click here.

Default Settings (stored in config.py)

Name Description
Output encoding UTF-8
Export directory export/
Output format CSV
Delimiter Vertical line

Execution

$ python main.py [-v] [-h] url

Help

$ python main.py -h
$ python main.py --help

Troubleshooting

main.py: error: too few arguments

Solution: This is because the program requires one URL as input to start the crawling.

Output file is all garbage code, for example many question marks. Its solution is here.

Solution: You need to import the CSV and adjust according to the default settings.

This program only works for posts from tieba.baidu.com. URL from other website may cause an exception.

tiebacrawler's People

Contributors

wanwenli avatar

Watchers

 avatar  avatar

Forkers

yaoxingqi

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.