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.71k stars 1.47k forks source link

KeyError: 'ds_user_id' #1337

Closed BeatKO closed 4 years ago

BeatKO commented 4 years ago

using this script python3 like_hashtags.py party

getting this error:

2020-02-29 17:34:04,970 - INFO - Not yet logged in starting: PRE-LOGIN FLOW!
2020-02-29 17:34:08,146 - ERROR - Request returns 400 error!
2020-02-29 17:34:08,146 - INFO - Instagram's error message: challenge_required
2020-02-29 17:34:08,146 - INFO - Error type: checkpoint_challenge_required
2020-02-29 17:34:08,146 - INFO - Going to like media with hashtag #party.
Traceback (most recent call last):        
  File "like_hashtags.py", line 26, in <module>
    bot.like_hashtag(hashtag)
  File "/usr/local/lib/python3.6/dist-packages/instabot/bot/bot.py", line 734, in like_hashtag
    return like_hashtag(self, hashtag, amount)
  File "/usr/local/lib/python3.6/dist-packages/instabot/bot/bot_like.py", line 239, in like_hashtag
    medias = self.get_total_hashtag_medias(hashtag, amount)
  File "/usr/local/lib/python3.6/dist-packages/instabot/bot/bot.py", line 582, in get_total_hashtag_medias
    return get_total_hashtag_medias(self, hashtag, amount, filtration)
  File "/usr/local/lib/python3.6/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/python3.6/dist-packages/instabot/api/api.py", line 1493, in get_total_hashtag_feed
    self.get_hashtag_feed(hashtag_str, next_max_id)
  File "/usr/local/lib/python3.6/dist-packages/instabot/api/api.py", line 1170, in get_hashtag_feed
    ).format(hashtag=hashtag, max_id=max_id, rank_token=self.rank_token)
  File "/usr/local/lib/python3.6/dist-packages/instabot/api/api.py", line 634, in rank_token
    return "{}_{}".format(self.user_id, self.uuid)
  File "/usr/local/lib/python3.6/dist-packages/instabot/api/api.py", line 630, in user_id
    return self.cookie_dict["ds_user_id"]
KeyError: 'ds_user_id'
soulpawa commented 4 years ago

got the same problem