Closed itoma-aikon closed 1 week ago
Use
following_new = await following.next()
to retrieve the next batch of followers. Put it in a loop to automate it
Thank you!! I followed the instructions and was successful. I got the following code.
import asyncio
from twikit import Client
client = Client(
language = 'ja-JP',
)
async def main():
client.load_cookies('cookies.json')
following = await client.get_user_following(user_id=xxxx,count=100)
while following:
for user in following:
print(f"username:{user.name} userID:{user.screen_name} (ID: {user.id})")
following = await following.next()
asyncio.run(main())
I want to use get_user_following to get a list of followers, but when I tweak the count I only get 50.