I wrote simple f开发者_开发问答unction which handles fetching of the url: def tender_page_get url, agent
I have a Mechanize based Ruby script to scrape a website. I am hoping to speed it up by caching the downloaded HTML pages locally to make the whole \"tweak output -> run -> tweak output\" cycle quicke
I would 开发者_JS百科like to specify a base URL so I don\'t have to always specify absolute URLs. How can I specify a base URL for Mechanize to use?To accomplish the previously proffered answer using
I searched on google and read in the ruby manuals, b开发者_如何学运维ut I couldn\'t find a way to use WWW::Mechanize and NET::HTTP::GET over a socks4 proxy.