Skip to content
This repository has been archived by the owner on Mar 25, 2019. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 869 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 869 Bytes

Rap Genius Trackback Scraper

This is the tool we used to scrape 178k URLs in 15 minutes in order to find which pages were hosting potentially spammy Rap Genius links. Given a list of URLs to scrape, it creates aggregate information that identifies the spammiest sites for manual review.

For more details on the motivation and background for this repository, check out the blog post on Rap Genius

Setup

You can run the scrape process using a set of sample data in vendor/urls.txt. To get started:

$ bundle install && rake db:create db:migrate urls:import
$ gem install foreman
$ mkdir tmp
$ foreman start worker

Then, once the pages have all been scraped (i.e., Page.unscraped.count == 0):

# from the console
Page.write_report!

License

MIT