modrzew / pokeminer

Pokemon location scraper
MIT License
220 stars 62 forks source link

Setting up proxy #233

Open PuddinPants opened 7 years ago

PuddinPants commented 7 years ago

When using proxys I just get an IP:port, how do i set this up in the config? Do you use http or https?

Right now im using PROXIES = {'https':'https://xxx.xx.x.xxx:xxxx'}

and I dont think its working properly

Thanks!

modrzew commented 7 years ago

I don't use proxy by myself, so I won't be an expert here, but try setting the same value for both http and https. It should be an URL in form of socks5://12.34.56.78:9012/ or something similar.

Aiyubi commented 7 years ago

note: if you use socks you will also need to pip install pysocks

my working setting with proxy over ssh:

PROXIES = {'http':  'socks5://localhost:5004',
           'https': 'socks5://localhost:5004'}

with ssh -D 5004 user@ser.ver

PuddinPants commented 7 years ago

Do I have to use socks5 if i have it installed or can it be done without?

Sorry for being new, what does the ssh -D 5004 command do?

Aiyubi commented 7 years ago

@PuddinPants its 1:1 what 1 use. So guess yeah socks5 you should know what ssh does if you try this -D 5004 binds your local port 5004 to that connection. So every request that you send to your local port goes through that connection

paul30001 commented 7 years ago

@Aiyubi so where and how do we use the ssh -D 5004 command?

paul30001 commented 7 years ago

How do I know if I'm using socks?