简体   繁体   中英

Searching for URL's in tweets via Python Tweepy

Haven't been able to find much on this. Is there a way to use tweepy (or if you can think of a better way that still utilizes tweepy but with something else) to search for tweets that have a url in them? I don't believe the API.search function allows you to pass html attributes (for instance an a would be perfect) or by type. Any ideas?

Maybe you can do something like this Regex to find urls in string in Python


You can still use api.search() and match them with a Regex that finds URLs

NOTE: I haven't tested it & i don't have used Tweepy for a while now, so there is a chance this might not work!

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