Coder Social home page Coder Social logo

we1schomp's Introduction

WE1S Chomp

WE1S Chomp is a client-side, human-assisted, generic-ish web scraper designed to collect broad data samples from specific websites based on specific Google queries. It should (eventually) be extensible, user-friendly, and capable of producing good, clean results at the scale of thousands or tens of thousands of queries.

Installing

Download the latest binary from the releases page here and unzip to any directory. Run with:

we1schomp.exe [--options]

From Source

Clone the repo and install manually with pip.

git clone https://github.com/seangilleran/we1schomp.git
cd we1schomp
pip install -r requirements.txt

Set-Up

WE1S Chomp works in two stages. First it collects lists of relevant URLs from Google, then it goes back and collects article content from those URLs. You can control all these operations from the settings.ini file.

Each website should have a section in settings.ini that includes information about it and any special instructions for it WE1S Chomp might require. Many of the settings under [DEFAULT] can be changed for individual websites. For example:

...

[thebaffler]
name = The Baffler
site = thebaffler.com

[theoutline]
name = The Outline
site = theoutline.com
skip = true

Every website you query must have a section, and every section must have a URL and proper name. All the other settings are optional. Any settings you do not specify will revert to the defaults provided under the heading [DEFAULT].

URL Collection

Once you have configured settings.ini, you can begin collecting URLs.

python run.py

Eventually, Google will become suspicious and give you a CAPTCHA to complete to prove that you're not a bot. Once you solve it the query should resume.

Article Collection

Once you have a set of URL files in place, you can begin collecting articles. If you have URLs already and want to bypass Google, you can use the following launch option:

python run.py --no-google-search

WE1S Chomp works by grabbing all the content from the content_tag tags in settings.ini and throwing out anything with fewer than content_length_min characters. If you are not getting good results, you can change these on a per-site basis in settings.ini.

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.