Giter VIP home page Giter VIP logo

Comments (4)

th3o6a1d avatar th3o6a1d commented on May 17, 2024

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.

geduldig avatar geduldig commented on May 17, 2024

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.

agencia avatar agencia commented on May 17, 2024

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.

geduldig avatar geduldig commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.