Skip to content

Instantly share code, notes, and snippets.

View michaelfward's full-sized avatar
😃

Michael F. Ward michaelfward

😃
  • United States
View GitHub Profile
@michaelfward
michaelfward / scraper.rb
Created March 23, 2015 21:35
Yelp Review Scraper
#note: must provide raw HTML file as argument. I just used wget on the business' URL
#yelp data scraper
#programmed by michael ward
#programmed for tater & joes cafe
#h3xc0ntr0l@gmail.com
reg = /.*<p itemprop="description".*>(.*)<\/p>/
user = /.*<meta itemprop="author" content="(.*)">.*/
exit unless ARGV.length == 1
fd = File.open(ARGV[0], "r");