So I have a nokogiri web scrape running perfectly on my local machine.
However when I try and run the web scrape on my production environment it get a 403 error code appear.
I believe this is down to the website blocking my ip of my server (probably because previous people using that ip have blocked it)
Is it possible to route the nokogiri request from my web server through a proxy server? If so how would I go about it?
This is the code I have at the moment.
doc = Nokogiri::HTML(open(URL HERE, 'User-Agent' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.854.0 Safari/535.2'))