Python Forum
I need help with an instagram bot - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: I need help with an instagram bot (/thread-247.html)



I need help with an instagram bot - bobduckling221 - Oct-02-2016

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
>>> "


RE: I need help with an instagram bot - metulburr - Oct-02-2016

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



RE: I need help with an instagram bot - Ofnuts - Oct-02-2016

(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 :)