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

How to extract my own followers usernames? #1065

Closed partTime-NeRD closed 5 years ago

partTime-NeRD commented 5 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

I would like to extract my own account followers usernames to use them in like_users.py I would use like_timeline_feed.py but it's not working for me. It stops too early (almost immediately!) and for some reason most of the timeline's medias do not get the likes...!

Thanks for any advice, again it's a really nice code overall.

Steenos commented 5 years ago

Try this:

my_account = bot.get_user_id_from_username("username") my_followers = bot.get_user_followers(my_account)

There's more info on these functions and their parameters on the docs https://instagrambot.github.io/docs/en/For_developers.html

Hope this helps.