Open DoisKoh opened 9 years ago
I edited your code to remove your credentials. Remember to renew them immediately as they are likely to be stored in the Google Cache!
According your problem: I'll look into it this weekend. My first guess is that there is some kind of infinite loop or a problem in the library itself when calling the callback function.
Is this behavior also present when you run it under Python3? Also, when exactly does the program freeze? Like after how many executions of the callback function?
Thanks,
From the printouts that I can recall, it seemed to only happen after querying (but before the function callback). Also, its after a random number of queries... I'm using the default of 100 tweets per query now, and sometimes it stops at 500, sometimes 300, sometimes 1000+.
I'll try it on different versions of python.
Tried on Python 2.7.10 and 3.5, I'm still getting the same issue.
I'm running Windows 10 by the way.
I'm looking into the issue as soon as I have a bit of spare time :) Looks like a bug in TwitterSearch.
Thanks again for bringing this up here!
Hi, your sample code is not working even on Python 3.5. I isolated it to the for
statement in
for tweet in ts.search_tweets_iterable(tso):
print( '@{} tweeted: {}' , ( tweet['user']['screen_name'], tweet['text'] ) )
So I tried fooling around with your API and realized that none of the functions search_tweets()
or search_tweets_iterable()
work as expected. I too installed TwitterSearch from pip. Gentle reminder that this bug exists.
I'll look into this once I have a bit of spare time. Thanks for bringing this up again!
Hello... I'm using your library and I don't know why but my program randomly freezes sometimes. My program is pretty simple and is pretty much just copying the code sample you provide @https://twittersearch.readthedocs.org/en/latest/index.html (actually, your code sample was also freezing when I tried it).
Could it have to do with the version of python I'm using? (2.7.9) I installed TwitterSearch through pip. I hope its not some deadlock issue.
Here's what I've been running: