Instapy: How can I set up proxy in Instapy

Created on 6 Dec 2017  路  9Comments  路  Source: timgrossmann/InstaPy

I`m from China, so you know, we have to visit instagram through proxy.

I`ve tried to install switchomega to set up proxy everytime the chrome window shows up. However, when I restart the quickstart, the switchomega disappears and so do the setting of proxy.

So, is there any solution to set proxy in instapy properly?

question

All 9 comments

@sky660099 Try adding

chrome_options.add_argument('--proxy-server=http://<ip_of_proxy>')

to the instapy constructor in https://github.com/timgrossmann/InstaPy/blob/db6b7cc4670884cb8b000cabad336b26dc865ebb/instapy/instapy.py#L154-L160

@timgrossmann That works, thank you!

@sky660099 Awesome! Enjoy

Thanks @timgrossmann for help on this. Had a follow-up question: how do you add login details in case I have for my proxy?

@sky660099 I'm not 100% sure but in most cases you just use

<username>:<password>@<proxy_url>:<port>

@timgrossmann got it, thx. Btw, unfortuanately today my account is restricted by ins. Even not able to add any caption or comment at my own post. How long will it be recovered? Is there any good suggestions in using instapy or setting the parameter? Now I unfollow 20 users every hour and view 30 posts under each hashtag, others are all default.

@sky660099 I'm sorry, but the setup changes from account to account...
There is no "general" rule as it seems

I have created a PR for proxy authentication https://github.com/timgrossmann/InstaPy/pull/1531
Check please.

Hello. Are you able to use proxy in headless browser?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Naramsim picture Naramsim  路  3Comments

v77v picture v77v  路  3Comments

Spyd3r0us picture Spyd3r0us  路  3Comments

converge picture converge  路  3Comments

ingorichter picture ingorichter  路  3Comments