Instapy: Proxy problem

Created on 18 Jul 2018  路  8Comments  路  Source: timgrossmann/InstaPy

Hi,
when using a proxy I get this error:

InstaPy/instapy/instapy.py", line 276, in set_selenium_local_session
proxy = ":".join([self.proxy_address, self.proxy_port])
TypeError: sequence item 1: expected str instance, int found

wontfix

All 8 comments

same problem.

Donwloaded brand new instapy.master, only inputted username password and change the quickstart.py adding the proxy thing by following.

(Line 19) session = InstaPy(username=insta_username,
password=insta_password,
proxy_address='196.xxx.xxx', proxy_port=600xx)

then the console shows TypeError: sequence item 1: expected str instance, int found

the current readme and instruction about proxy is poor.

hello @kairosooo where you able to configure your proxy correctly? im about to try one and need guidance

I found the problem for this one. You have to cast str(self.proxy_port)

how do i do that? i add it to which file? eli5 please?

@Areahints InstaPy/instapy/instapy.py", line 276 .
proxy = ":".join([self.proxy_address, self.proxy_port])
should instead be proxy = ":".join([self.proxy_address, str(self.proxy_port)])

@uluqulu @charlesccc might this be something needed to patch into master?

@fgisslen @Areahints Can any one of you PR the change please, so we can review it and then merge/path into master. thank you.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. > If this problem still occurs, please open a new issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thisishotdog picture thisishotdog  路  3Comments

seuraltimez picture seuraltimez  路  3Comments

v77v picture v77v  路  3Comments

rahulkapoor90 picture rahulkapoor90  路  3Comments

drcyber975 picture drcyber975  路  3Comments