[ ] Searched the bugtracker for similar issues including closed ones
Purpose of your issue?
[ ] Bug report (encountered problems/errors)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other
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)
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.
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like so [x]).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:
Error/Debug Log:
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)