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

Need help #587

Closed tearstheartist closed 6 years ago

tearstheartist commented 6 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:

Code:

# Example code that will produce the error reported
from instabot import Bot

bot = Bot()
bot.login(username="user", password="pass")
followers = bot.get_user_followers(bot.user_id)

Error/Debug Log:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ZeroDivisionError: integer division or modulo by zero

Describe your issue

Traceback (most recent call last): File "c:\Users\tonyt\Desktop\New folder\instabot.py-master\example.py", line 50, in unfollow_whitelist=['xxxtentacion', 'lilpeep']) File "c:\Users\tonyt\Desktop\New folder\instabot.py-master\src\instabot.py", line 232, in init self.login() File "c:\Users\tonyt\Desktop\New folder\instabot.py-master\src\instabot.py", line 301, in login self.user_id = ui.get_user_id_by_login(self.user_login) File "c:\Users\tonyt\Desktop\New folder\instabot.py-master\src\userinfo.py", line 41, in get_user_id_by_login all_data = json.loads(info.text) File "C:\Users\tonyt\AppData\Local\Programs\Python\Python37\lib\json__init__.py", line 348, in loads return _default_decoder.decode(s) File "C:\Users\tonyt\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\tonyt\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

basnijholt commented 6 years ago

Use the latest master :)

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.