Skip to content

whatevery1says/we1schomp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

WE1S Chomp: A Digital Humanities Web Scraper

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%