b3nab / instapy-cli

:sparkles: Python library and CLI to upload photo and video on Instagram. W/o a phone!
MIT License
601 stars 98 forks source link

[Feature] Add proxy support #19

Open ghost opened 6 years ago

ghost commented 6 years ago

Can we use a Proxy to do the requests ?

ChunkyTester commented 6 years ago

I am searching for the same thing. Did you figure out how to do it?

ChunkyTester commented 6 years ago

@ilmetu proxies = {'http': 'http://10.11.4.254:3128'} self.session = requests.session() self.session.proxies.update(proxies)

add this to the InstapySession of session.py file in api folder

craoput commented 6 years ago

@ChunkyTester The code you gave is not working. indir

b3nab commented 5 years ago

Now instapy-cli move to instagram_private_api library. I think that your code not work anymore @ChunkyTester . However now is a lot easier to code a patch and add support for proxies. Anyone who want to add this feature is welcome. I will review every pull request and release new versions.

AKwoKWH commented 5 years ago

Hi all, If this proxy feature is now included in the code? I think this is quite important as auto posting for multi account using same IP address will easily get banned.

Thanks.

AKwoKWH commented 5 years ago

@ChunkyTester

where should I put your code in?

proxies = {'http': 'http://10.11.4.254:3128'} self.session = requests.session() self.session.proxies.update(proxies)