Comments (4)
Can you frame it in a
try:
Code
except:
print "waiting"
??
On Feb 5, 2014, at 10:41 AM, agencia [email protected] wrote:
Hi, i have been enjoying this API, im trying some data mining but i got a problem at TwitterRestPager, it gives me
*** STOPPED HTTPSConnectionPool(host='api.twitter.com', port=443): Read timed out.Is there a way to increase the time out limit? actually i was hoping to get tones of tweets and i only get like 300
Tnks
—
Reply to this email directly or view it on GitHub.
from twitterapi.
I wonder if you are reaching the limit of stored old tweets (about a week's worth). You would then timeout because there is nothing more to read. Can you tell me what your search terms are? Also, what is the time stamp ('created_at') for the last tweet you get before the timeout?
If you want to try increasing the timeout to see if that gets you more tweets, you can set the timeout in TwitterAPI/constants.py. The variable is REST_SOCKET_TIMEOUT.
from twitterapi.
Thanks for your help
Im searching these therms
pager = TwitterRestPager(api, 'search/tweets', {'q':'Aguascalientes 4sq com, ags 4sq com', 'count':100})
aguascalientes is a city
The message of this title just appeared a couple of times, now i have been getting the next
*** STOPPED _ssl.c:489: The handshake operation timed out
Also
created_at": "Wed Jan 29 20:06:01 +0000 2014",
I guess i just reached the limit of stored old tweets. Now, they are not enough for my research, it there other way to get older tweets? or is there an other data maining technic for twitter?
One again, thanks four your help
from twitterapi.
You can't get older tweets via Twitter's API. Your alternative is using a 3rd party, such as Topsy, that stores all tweets. Going forward, you can acquire the tweets using the Streaming API and store them for later research.
Good luck with your research!
from twitterapi.
Related Issues (20)
- Wrong documentation version on gh-pages HOT 1
- No includes in _RestIterable response without hydration
- lang filtering does not seem to work HOT 1
- Attempting to pull more than 10 tweets with search/tweets HOT 1
- Question: how do I acquire `screen_name` using `author_id`?? HOT 1
- DM Example not working HOT 2
- gracefully handling a stalled stream HOT 51
- Upgrade Ads API to version 10 - Deadline March 31, 2022
- Bearer Token Issue with Academic Access in Twitter API V2 HOT 1
- SUBSCRIPTION ENDPOINT NOT WORKING HOT 2
- `expansions` does not work with `author_id` HOT 2
- Twitter Ads API version 10 deprecation - End of life date September 29, 2022
- Add support for `/users/:id/bookmarks` endpoint
- Add support for OAuth2 authentication with access_tokens HOT 1
- Not able to create Webhook with Twitter HOT 2
- Request method fails to attach additional metadata HOT 2
- Authenticating error (api_version='2') HOT 8
- Can't attach media V2 HOT 2
- Publish Tweets w/ v2 HOT 3
- OP_NO_TICKET SSL Option no longer supported by Twitter HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twitterapi.