Skip to content

error line 106, 30, and mechanize.py ... and urllib2.URLError: <urlopen error [Errno 10061] No connection could be made becau se the target machine actively refused it> please help #22

@cahyonegoro

Description

@cahyonegoro

hey i get this kind of error, how to repair it

C:\Users\Nurdin\Desktop\instabo>python instabot.py

        InstaBot
Developed by Marc Laventure

Traceback (most recent call last):
File "instabot.py", line 106, in
hashtags = getTopHashTags(br)
File "instabot.py", line 30, in getTopHashTags
br.open(WEBSTA_HASHTAG)
File "C:\Python27\lib\site-packages\mechanize_mechanize.py", line 203, in ope
n
return self._mech_open(url, data, timeout=timeout)
File "C:\Python27\lib\site-packages\mechanize_mechanize.py", line 230, in _me
ch_open
response = UserAgentBase.open(self, request, data)
File "C:\Python27\lib\site-packages\mechanize_opener.py", line 193, in open
response = urlopen(self, req, data)
File "C:\Python27\lib\site-packages\mechanize_urllib2_fork.py", line 344, in
_open
'_open', req)
File "C:\Python27\lib\site-packages\mechanize_urllib2_fork.py", line 332, in
_call_chain
result = func(*args)
File "C:\Python27\lib\site-packages\mechanize_urllib2_fork.py", line 1142, in
http_open
return self.do_open(httplib.HTTPConnection, req)
File "C:\Python27\lib\site-packages\mechanize_urllib2_fork.py", line 1118, in
do_open
raise URLError(err)
urllib2.URLError: <urlopen error [Errno 10061] No connection could be made becau
se the target machine actively refused it>

C:\Users\Nurdin\Desktop\instabo>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions