marclave / InstaBot

A simple Instagram bot written in Python
199 stars 74 forks source link

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

Open cahyonegoro opened 8 years ago

cahyonegoro commented 8 years ago

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>