Streaming tweets with links in python


#1

Using tweepy to stream tweets. I was using a regex to search for URLs in the tweets and display them in a database but it only returns http://t.co links. I want to stream tweets with all sorts of URLs (www., bit.ly, tinyurl, etc.). Can I use the entities/urls method to achieve this? If so, what is the statement I need to use? If not, what is an alternative?


#2

Streaming tweets with links

tweepy
stream = Stream(auth, StreamListener) # stream object
stream.filter(track=‘http’)

Twitter API
https://stream.twitter.com/1.1/statuses/filter.json?track=http

search URL
https://twitter.com/search?f=realtime&q=http&src=typd