instapy-cli icon indicating copy to clipboard operation
instapy-cli copied to clipboard

[Feature] Add proxy support

Open ghost opened this issue 7 years ago • 6 comments

Can we use a Proxy to do the requests ?

ghost avatar Jun 19 '18 10:06 ghost

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

ChunkyTester avatar Jul 14 '18 20:07 ChunkyTester

@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

ChunkyTester avatar Jul 15 '18 11:07 ChunkyTester

@ChunkyTester The code you gave is not working. indir

craoput avatar Jul 23 '18 11:07 craoput

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.

b3nab avatar Mar 21 '19 00:03 b3nab

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 avatar May 04 '19 10:05 AKwoKWH

@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)

AKwoKWH avatar May 04 '19 10:05 AKwoKWH