Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 714 Bytes

File metadata and controls

29 lines (19 loc) · 714 Bytes

How to use it

# setup the database
bundle exec rake db:setup

# start rails server
rails s

# and in another terminal, start Sidekiq
bundle exec sidekiq

Then go to localhost:3000 and start scraping yelp businesses!

Relevant Files

app/controllers/businesses_controller.rb

which calls the YelpJob in

app/jobs/yelp_job.rb

which is just used as an asynchronous wrapper around YelpScraper

lib/yelp_scraper.rb

which does most the work.