Python Forum
I need help with an instagram bot
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I need help with an instagram bot
#1
So basically I have this bot, but it keeps on crashing. Here is the code... the _____ is personal names that i dont want to be used in public. I am not sure what the underlined script is. Please help me :huh: :huh:


"Trying to login as _____...

______ login success!
Blacklisted user _____ added with ID: 11341294
Traceback (most recent call last):
  File "C:\Users\______\Desktop\example.py", line 18, in <module>
    log_mod=0)
  File "C:\Users\______\Desktop\instabot.py-master\instabot.py", line 157, in __init__
    self.populate_user_blacklist()
  File "C:\Users\_____\Desktop\instabot.py-master\instabot.py", line 167, in populate_user_blacklist
    id_user = all_data['user']['media']['nodes'][0]['owner']['id']
IndexError: list index out of range
>>> "
Reply
#2
Quote:Here is the code...
This all looks like output and no code provided. Use quote to post output examples...not underlines.

Quote:the _____ is personal names that i dont want to be used in public.
names/usernames are normally not sensitive data

Quote:
all_data['user']['media']['nodes']
it looks like nodes is an empty list

for example
>>> a = {'test':[]}
>>> a['test'][0]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IndexError: list index out of range
Recommended Tutorials:
Reply
#3
(Oct-02-2016, 04:46 PM)metulburr Wrote:
Quote:the _____ is personal names that i dont want to be used in public.
names/usernames are normally not sensitive data
They can be. But then they can be replaced by something more readable than underscores :)
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to make bot that sends instagram auto password reset code kraixx 2 1,361 Mar-04-2023, 09:59 PM
Last Post: jefsummers
  instagram followers name without suggestion for you jacklee26 1 3,161 Oct-02-2021, 04:57 AM
Last Post: ndc85430
  Predicting Likes on Instagram Posts donnertrud 1 2,314 Dec-28-2019, 08:53 AM
Last Post: kamaleon
  Instagram pagination tags Kalet 1 4,981 Dec-14-2016, 09:56 PM
Last Post: nilamo
  Get pagination Instagram Kalet 0 5,957 Dec-14-2016, 12:21 AM
Last Post: Kalet
  Python Instagram bot user-following problem danotto 1 5,019 Dec-11-2016, 10:36 PM
Last Post: Blue Dog

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020