Dr T
Dr T

Reputation: 524

Use Tweepy to gather Tweets with hashtags from Egypt

I am using Tweepy and Python to gather tweets from Egypt. The tweets must contain hashtags.

I am using these co-ordinates for Egypt:

25.13671875, 22.0245456012, 35.3759765625, 31.3723991049

The code is not a problem, but I am finding that I am only getting one or two tweets every few seconds, yet when I change the location to UK I get loaddsssss.

Anyone know whats going on please? Are my coordinates wrong?

Upvotes: 1

Views: 572

Answers (1)

A. STEFANI
A. STEFANI

Reputation: 6736

Some people may say RTFM... :-)

because according to the last tweepy documentation:

The parameter value is specified by “latitude,longitude,radius

But in your example you set twice a GPS coordinates ...

So it explain the result you got, because in my opinion tweeter API understand your request like : "I would search all tweets, in a radius of 35.37mil (by default) near: 25.13671875, 22.0245456012"

So you may swich your coordinate request to :

25.13671875,22.0245456012,1000mil  #mil or km as you prefer

then It will be OK !

*To explain the diff.: latitude of England is around 50.85300: so the same request applied to England coord give you all tweets in a radius of 51mil near the central point you choose...

Best regards

Upvotes: 0

Related Questions