Tweepy / twitter gets all tweets from a location:

I have the following questions about tweepy python module

1. I'm trying to get all the tweets for a specific place. I can do this using the tweepy python module (streaming API), but I only get tweets whose geo-locations are on, which means that I will lose the rest of the tweeter tweets that did not include their geographical location. Is there a better way to get all the tweets given the location?

2. I use the Stream.Sample method to extract all tweets. Can someone tell me about the parameters used in the sample method? I see the counter and asynchronously as parameters. Now, what should we indicate here?

3. What does the firehose method in tweepy.Stream do?

Any help is much appreciated

+5
source share
1 answer

If tweepy does not have the necessary function, you can always directly access Twitter with an HTTP request. The full Twitter REST API is described here: https://dev.twitter.com/docs/api

Those that seem interesting to you are:

  • GET trends/:woeidwho searches for woeid tweets , Yahoo ID for collecting information about a given place / landmark / etc.
  • GET geo/id/:place_idthat only launches geotagged tweets.
  • There is documentation on all the information available for the request GET, but the IP address is not included in the number of available fields: https://dev.twitter.com/docs/api/1/get/search .
  • , Twitter FAQ , .
+4

All Articles