diezo / Ensta

🔥 Fast & Reliable Python Package For Instagram API - 2024
https://bit.ly/ensta-discord
MIT License
371 stars 44 forks source link

Resumable Download Followers #95

Closed vhdm closed 7 months ago

vhdm commented 7 months ago

Hi 👋, thank you very much for the practical package❤️, it is possible to get followers continuously with several different i.g accounts

diezo commented 7 months ago

@vhdm You can use Mobile class to fetch followers/followings. That way you can save the last cursor value and resume from where you left off later on. I think the cursor value should also work across multiple accounts.

from ensta import Mobile

mobile = Mobile(username, password)

followers = mobile.followers(someone)

for user in followers.list:
    print(user.username)

next_cursor = followers.next_cursor  # use this cursor next time to resume from here

Here's how to define the next_cursor value next time:

followers = mobile.followers(someone, next_cursor=previous_cursor_value)