modrzew / pokeminer

Pokemon location scraper
MIT License
220 stars 62 forks source link

How to set Proxies ? #195

Open SapitoSucio opened 8 years ago

Aiyubi commented 8 years ago

see https://github.com/modrzew/pokeminer/pull/181

SapitoSucio commented 8 years ago

Getting this Traceback (most recent call last): File "worker.py", line 103, in run password=config.ACCOUNTS[self.worker_no][1], File "C:\Users\David\Desktop\pokeminer - copia\pgoapi\pgoapi.py", line 173, in login response = self.app_simulation_login() File "C:\Users\David\Desktop\pokeminer - copia\pgoapi\pgoapi.py", line 150, in app_simulation_login response = request.call() File "C:\Users\David\Desktop\pokeminer - copia\pgoapi\pgoapi.py", line 217, in call request = RpcApi(self._auth_provider, self._proxy) File "C:\Users\David\Desktop\pokeminer - copia\pgoapi\rpc_api.py", line 66, in init self._session.proxies = proxy_config AttributeError: RpcApi instance has no attribute '_session'

modrzew commented 8 years ago

Did you run pip install -r requirements.txt --upgrade?

SapitoSucio commented 8 years ago

Yes, I did it :(

kton111 commented 8 years ago

i am not able to use proxy too. =[

mugabemkomo commented 8 years ago

Well I have the problem, I can enter a proxy, but it is not using the proxy. Still connecting normally without proxy.

I used: {'http': 'http://1.1.1.1:1080'}

wjpvandenheuvel commented 8 years ago

You probably need this: https://github.com/keyphact/pgoapi/pull/77/commits/bfb3fad9fb701963ef16551fa16a2241e98f18a0