7
làm cách nào để lấy được tên người dùng thuần túy từ số Id người dùng có tweepy?tweepy cách lấy tên người dùng từ id
Đây là mã SỬA CHỮA mà tôi đang sử dụng:
ids = []
userid = "someOne"
for page in tweepy.Cursor(api.followers_ids, screen_name=userid).pages():
ids.extend(page)
time.sleep(60)
print len(ids), "following have been gathered from", userid
users = api.lookup_users(user_ids=ids)#ieterates through the list of users and prints them
for u in users:
print u.screen_name
Dòng cuối cùng tôi đã nhận xét là một trong những đem lại cho tôi một vấn đề. Xin cho biết. Cảm ơn tất cả!