简体   繁体   中英

How to search by user_id or user_name in Tweepy?

Can someone please tell me how I can retrieve Tweets by a certain user_id or user_name using Tweepy? So far I only have this:

new_tweets = api.search(q=keyword, count=tweetsPerQry, geocode="23.5021579914,40.8558165767,500km" )

which return Tweets by a certain geolocation, but I want it to return Tweets by user_id .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM