GithubHelp home page GithubHelp logo

lang8-crawler's Introduction

Lang8 Crawler

Overview

Lang8 Crawler written in Python is based on scrapy, a fast high-level web crawling and web scraping framework. For more information about scrapy, check the homepage at: http://scrapy.org/

The following features included

  • Tor and Polipo support to create anonymous crawler and avoid being banned
  • Crawl each journal for each user on Lang8 and corresponding correct/incorrect pairs
  • Unicode support
  • Output JSON format

Requirements

  • Python 2.7
  • Works on Linux, Windows, Mac OSX, BSD
  • Tor (optional feature)
  • Polipo (optional feature)

Installation

You can disable Tor and Polipo support in settings.py to skip step 3 and 4

  • Install Python 2.7
  • Install Scrapy
  • Install Tor
  • Install Polipo and edit polipo config file as follows
socksParentProxy = localhost:9050
diskCacheRoot=""
disableLocalInterface=""
  • Run polipo via polipo -c CONFIG_FILE daemonise=true logFile=LOG_FILE
  • change directory to lang8-crawler/lang8 and run Lang8 Crawler via scrapy crawl lang8

Configuration

  • Modify the lang8-crawler/lang8/lang8/settings.py to config scrapy. Check the self-explainable comments in settings.py

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.