chadrem / market_bot

Google Play Android App store scraper
MIT License
361 stars 130 forks source link

Proxy support #19

Closed puzanov closed 10 years ago

puzanov commented 10 years ago

Hello.

How to pass proxy add and proxy auth credentials to market_bot?

I've tried like that:
MarketBot::Android::SearchQuery::new(query, proxy: "#{ip}:#{port}", proxyuserpwd: "#{username}:#{password}") proxy is not used in this case

Please, help.

chadrem commented 10 years ago

Sorry I don't have any experience using market bot with a proxy. Since market bot uses Typhoeus for all HTTP communication, I would suggest looking into how it works with proxies and then pass the relevant options to it.

x2on commented 10 years ago

You could use

MarketBot::Android::SearchQuery::new(query, :request_opts => { :proxy: "#{ip}:#{port}", proxyuserpwd: "#{username}:#{password}"})