ohld / igbot

🐙 Free scripts, bots and Python API wrapper. Get free followers with our auto like, auto follow and other scripts!
https://hikerapi.com/p/N2P6iqiM
Apache License 2.0
4.69k stars 1.47k forks source link

'ds_user_id' #1092

Closed cala095 closed 4 years ago

cala095 commented 4 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.


For a bug report, you must include the Python version used, code that will reproduce the error, and the error log/traceback.

Paste the output of python -V here:

Python 3.7.2

Code:

sudo python like_hashtags.py dog

Error/Debug Log:

2019-10-19 12:29:01,381 - INFO - Instabot Started Which account do you want to use? (Type number) 1: mad_mango95 2: black_book000 0: add another account. -1: delete all accounts. 2 No handlers could be found for logger "[instabot_black_book000]" 2019-10-19 12:29:07,368 - INFO - Going to like media with hashtag #dog. Traceback (most recent call last): File "like_hashtags.py", line 26, in bot.like_hashtag(hashtag) File "/usr/local/lib/python2.7/dist-packages/instabot/bot/bot.py", line 687, in like_hashtag return like_hashtag(self, hashtag, amount) File "/usr/local/lib/python2.7/dist-packages/instabot/bot/bot_like.py", line 235, in like_hashtag medias = self.get_total_hashtag_medias(hashtag, amount) File "/usr/local/lib/python2.7/dist-packages/instabot/bot/bot.py", line 535, in get_total_hashtag_medias return get_total_hashtag_medias(self, hashtag, amount, filtration) File "/usr/local/lib/python2.7/dist-packages/instabot/bot/bot_get.py", line 139, in get_total_hashtag_medias medias = self.api.get_total_hashtag_feed(hashtag, amount) File "/usr/local/lib/python2.7/dist-packages/instabot/api/api.py", line 1475, in get_total_hashtag_feed self.get_hashtag_feed(hashtag_str, next_max_id) File "/usr/local/lib/python2.7/dist-packages/instabot/api/api.py", line 1134, in get_hashtag_feed hashtag=hashtag, max_id=max_id, rank_token=self.rank_token File "/usr/local/lib/python2.7/dist-packages/instabot/api/api.py", line 556, in ranktoken return "{}{}".format(self.user_id, self.uuid) File "/usr/local/lib/python2.7/dist-packages/instabot/api/api.py", line 552, in user_id return self.cookie_dict["ds_user_id"] KeyError: 'ds_user_id'


Describe your issue

i get this 'ds_user_id' error for everything i try to do with the bot, i think is a login problem but 'm not sure cause i don't fully understand it :(

taylorturner commented 4 years ago

Having the same issue.

ghonchesefidi commented 4 years ago

Same here

DeadmauZ commented 4 years ago

same issue help

avishaan commented 4 years ago

same issue, slightly related I thought if I could just log in again I might be able to solve the problem. Unfortunately, even when I do use_cookies=False, force=True and delete the cookie file (the default in the documentation seems to be wrong) it no longer logs in and just hangs now

silvanarmbruster commented 4 years ago

Someone figured out whats the problem? Would be soooo nice!

leoccyao commented 4 years ago

Duplicate of #860 . First check your username and password, if they are correct, you received an instagram checkpoint challenge. Use

bot.login(ask_for_code=True)

Also see #1140

KadabrahG commented 4 years ago

Duplicate of #860 . First check your username and password, if they are correct, you received an instagram checkpoint challenge. Use bot.login(ask_for_code=True)

Also see #1140

Hey, where should this line of code be inserted ? Thanks <3

bruvv commented 4 years ago

Closing since this question has been answer many times now.if the issue is still here open a new one.

ghost commented 4 years ago

@bruvv i still get the issue tried everything even inserting ask_for_code=True but still doenst work

janvarsa commented 4 years ago

bot.login(ask_for_code=True) results in same error after the prompt for username and password.