sysout / staples_price_tracker

0 stars 1 forks source link

Not able to handle OOS item #3

Open sysout opened 8 years ago

sysout commented 8 years ago

For example: http://www.staples.com/Edimax-Wi-Fi-Smart-Plug-with-Power-Meter-Intelligent-Energy-Management/product_1955007

will cause 503 error

sysout commented 8 years ago

It's caused by missing db migration "heroku run rake db:migrate"

sysout commented 8 years ago

For this oos item, staples return In stock We have to use JS enabled browser like phantomjs to parse the webpage.

Further read: http://tutorials.jumpstartlab.com/topics/scraping-with-capybara.html