-
Notifications
You must be signed in to change notification settings - Fork 701
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
Twitter search scrapes in default 'latest' order fail with 401 ('non-200 status code') #634
Comments
So I have to add top flag for it to work? |
The "Latest" tab seems to be back now on Twitter search pages. |
It's unclear right now whether the functionality is still available at all. If not, it might never get fully solved. You can probably work around it by using |
This comment was marked as spam.
This comment was marked as spam.
@constantin-barbu They might be doing more changes at the minute. I don't see it. I'm also seeing claims that it is only available when logged in (which would be useless for snscrape). |
You're right, it's only available when logged in :(. |
Is there a way to log in our access token so we can have access to it? |
@AhmetcanFR No, logging in is not and will not be supported: #270 |
What can we do for now? |
There's currently no known workaround apart from the one I mentioned above. |
@JustAnotherArchivist if I set 'top=False' |
@MazenTayseer No, only |
where would this be used top = True??? for i,tweet in enumerate(sntwitter.TwitterSearchScraper('#CRM OR #Salesforce, since:2022-1-1 until:2023-1-10').get_items()):
if i>250000:
break
tweets_list.append([tweet.date, tweet.id, tweet.rawContent, tweet.user.username])
# Creating a dataframe from the tweets list above
CRM_tweets_df = pd.DataFrame(tweets_list, columns=['Datetime', 'Tweet Id', 'Text', 'Username']) |
@Goitsemedi888 It's an optional argument to the scraper: |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
'Top' searches are now broken as well: #647 |
Twitter seems to have reverted this change. The 'latest' search scraping works again on the current snscrape version, even though it's still unavailable on the web interface. |
|
If you (or anyone else) have a problem on the latest snscrape version and no issue exists yet for it, file a complete bug report please. |
i downloaded the latest version of snscrape but still the error remains,what i have to do? |
@MariaPng You file a complete bug report, as the comment just before yours says. |
I am still facing this issue, i have implemented top = True in my code but the error is persisting. |
Since today, any
twitter-search
scrapes (i.e. includingtwitter-user
andtwitter-hashtags
, which are just wrappers around the search) that do not include the--top
flag fail. Twitter removed the 'Latest' tab from the search page this afternoon, and since approximately 22:35 UTC, the API seems to fail as well.The text was updated successfully, but these errors were encountered: