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

TypeError: 'NoneType' object is not iterable #293

Closed snik123 closed 7 years ago

snik123 commented 7 years ago

Please follow the guide below


Before submitting an issue, make sure you have:

Purpose of your issue?


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

Python 3.6.2 Code: """ instabot example Workflow: Follow user's following by username. """

import sys import os import time import random from tqdm import tqdm import argparse

sys.path.append(os.path.join(sys.path[0], '../')) from instabot import Bot

parser = argparse.ArgumentParser(add_help=True) parser.add_argument('-u', type=str, help="#") parser.add_argument('-p', type=str, help="#") parser.add_argument('-proxy', type=str, help="proxy") parser.add_argument('-users', type=str, nargs='+', help='#') args = parser.parse_args()

bot = Bot() bot.login(username=args.u, password=args.p, proxy=args.proxy)

for username in args.users: bot.follow_following('#') (<---- idk what to put here)


Error/Debug Log:
Traceback (most recent call last):
  File "C:\Users\gebruiker\AppData\Local\Programs\Python\Python36\follow_user_following.py", line 28, in <module>
    for username in args.users:
TypeError: 'NoneType' object is not iterable

well it gives me this error, and im not sure what to put after bot.follow_following. Im sorry i'm a complete beginner at python.

ohld commented 7 years ago

in bot.follow_following you should put the user_id or username of a user which followings you want to follow

snik123 commented 7 years ago

still isnt working :/

snik123 commented 7 years ago

alright i got it to work, now my question is is how to add my own delay to it

ohld commented 7 years ago

There are a lot of arguments of Bot class, there are some of delays. You can take a loot at them at Readme.md file on the main repository page