-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't find guest token #61
Comments
Hey, You have to instantiate a new twitter session if the rate limit exceeds. I mean of course you can wait for the rate limits to be renewed but if you re-instantiate the session, it will bypass the limits. Let me know if it helps. |
Thank you! |
Hmm strange. I will take a look at the code shortly and see if there is any bug. Oh btw I think datacenter proxies work too, not sure but you can try. |
Good morning! Thank you for your work! BTW, I have some questions that confuses me a lot:
Thank you!!!❤️❤️❤️ |
Hey,
Oh wait, I just checked the first picture you attached, it says SSL error. I will fix it all shortly, please keep me posted. Thanks. |
Thank you for your reply! |
Hey, |
@iSarabjitDhiman Yes and testing, no SSL error/couldn't get guest token error occurred till now. However, still got this error
|
Could u share the screenshot? TweeterPy/tweeterpy/tweeterpy.py Line 167 in d6fd64c
Please check your log file. |
You mean the screenshot of log file or what? |
Yes the log file screenshot should be fine, make sure to blur the sensitive data if there is any. |
tweeterpy.log |
Hmmm I don't see the guest token error in there. Looks clean to me. Is this the correct log file? |
So the guest token error is gone? |
The guest token error logs. I fixed the UnboundLocalError here #63 |
The log was overwritten😅 I will send the lof to you if I get the same error. |
Oh I see, I just tested it on my side. The reason it return an empty dataset is that there is no tweet for the given tweet ID. But if I first log in with login() method and then try to fetch the same tweet ID, it would give us some extra useful information. In my case it throws this error: Exception: _Missing: No status found with that ID. Seems like, twitter doesn't give guest users any meaningful error messages. But if u are logged in, you get those messages/warnings/errors. Let me know if there is still any confusion. |
Oh, the 'couldn't got guest token error' occurs again. Detail in the end of the log file attached. |
You haven't updated the package, this is the reason you are still getting that guest token error. |
Hi!
And still in log file found error like this: The log file attached: You can search '[ERROR]' at the end of the log.
|
I believe the SSL error is due to the proxies. Do you get this error without proxies? |
Thank you for your reply! |
Hey man, Please test tweeterpy-1.1.5-py3-none-any.zip , this should solve your problem. pip install tweeterpy-1.1.5-py3-none-any.whl
# After u install, don't use the config file. Just pass the proxy directly into the constructor while creating an instance
from tweeterpy import TweeterPy
twitter = TweeterPy(proxy={"http":proxy_here, "https":proxy_here}) Oh yeah and don't worry, I sleep late night. I am a full time freelancer so I am kind of used to it. Let me know how it goes. |
Hi bro, |
Hey @zxj0302 Thanks for the update btw. I will release a new build soon. |
Thank you for your reply and great work! |
I generate a new session with 'twitter.generate_session()' after each 50 calls of get_retweet() to avoid the error 'rate limit exceed'. However, the error in the picture above will occurs sometimes, like after 200/300 calls of get_retweet(). It stops me from scraping a large number of tweets at a time. I was wondering how can I fix this? Thanks a lot!
P.S.: I used residential proxy with different ip for each request.
The text was updated successfully, but these errors were encountered: