Open Litx1 opened 4 years ago
Hello, how did you make it faster than 1 password every 2 seconds? mine is very slow
@kalibeginner For the love of AnalGod, tell us what you did to multithread.
AnalJesus
@kalibeginner do you know how to solve this? Connection to host failed , check your connection and tor configuration :: SOCKSHTTPConnectionPool(host='httpbin.org', port=80): Max retries exceeded with url: /ip (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSConnection object at 0x7fc3b0869bd0>: Failed to establish a new connection: 0x06: TTL expired'))
Change InstagramPySession.py, ~line 145 from:
try: self.bot.get( "{}si/fetch_headers/?challenge_type=signup&guid={}".format( self.api_url, str(uuid.uuid4()).replace('-', '')) ) self.magic_cookie = self.bot.cookies['csrftoken'] except KeyboardInterrupt: self.cli.ReportError( "cannot get the magic cookie , aborted by the user") except (BaseException, Exception) as err: self.cli.ReportError(err)
to this:
try: retry = Retry(connect=5, backoff_factor=0.5) adapter = HTTPAdapter(max_retries=retry) self.bot.mount('http://', adapter) self.bot.mount('https://', adapter) self.bot.get( "{}si/fetch_headers/?challenge_type=signup&guid={}".format( self.api_url, str(uuid.uuid4()).replace('-', '')) ) self.magic_cookie = self.bot.cookies['csrftoken'] except KeyboardInterrupt: self.cli.ReportError( "cannot get the magic cookie , aborted by the user") except (BaseException, Exception) as err: self.cli.ReportError(err)
Will need to include these imports: from requests.adapters import HTTPAdapter from requests.exceptions import Timeout, ConnectionError
@analjesus i did it but not working
Traceback (most recent call last):
File "/usr/local/bin/instagram-py", line 6, in
IndentationError: unindent does not match any outer indentation level
You need to match indenting.
@analjesus hey mate! Did you get it to work? I actually used the same code as you wrote it, with correct indents and is still throwing the same
error :/
pls help me guys it always said fail....
fatal error:: unable to send request to instagram :: SOCKSHTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/accounts/login/ (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSHTTPSConnection object at 0x7fdf41aa9ad0>: Failed to establish a new connection: Connection closed unexpectedly'))
Started @ 2022-11-27 22:02:51.625003 fatal error:: SOCKSHTTPSConnectionPool(host='i.instagram.com', port=443): Max retries exceeded with url: /api/v1/si/fetch_headers/?challenge_type=signup&guid=33f34ae418af4835b7c8dd858e064937 (Caused by NewConnectionError('<urllib3.contrib.socks.SOCKSHTTPSConnection object at 0xb592b490>: Failed to establish a new connection: [Errno -2] Name or service not known'))
hi, I'm testing your programs (instagram.py) and he work perfectly but he is slower than 512 password at a time, although I've wrote -m 0 to select 32 bot it should takes more than an hour but with 512 password at a time it should takes 7 second Did I wrote something wrong or my pc is too slow