Skip to content
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

401 Search Tweet by Query #835

Closed
0xTechnician opened this issue Apr 15, 2023 · 6 comments
Closed

401 Search Tweet by Query #835

0xTechnician opened this issue Apr 15, 2023 · 6 comments
Labels
duplicate This issue or pull request already exists

Comments

@0xTechnician
Copy link

Describe the bug

I'm running a script that uses sns for python (v0.6.2)

I'm encountering 401 errors using sntwitter.TwitterSearchScraper(query).get_items()

Is this related to Twitter public API upgrade that happened tonight?

Thanks

How to reproduce

for tweet in sntwitter.TwitterSearchScraper(query).get_items():

Expected behaviour

it should return a 200

Screenshots and recordings

No response

Operating system

Windows 11

Python version: output of python3 --version

3.10.8

snscrape version: output of snscrape --version

0.6.2

Scraper

TwitterSearchScraper

How are you using snscrape?

Module (import snscrape.modules.something in Python code)

Backtrace

No response

Log output

Error retrieving https://api.twitter.com/2/search/adaptive.json?include_profile_interstitial_type=1&include_blocking=1&include_blocked_by=1&include_followed_by=1&include_want_retweets=1&include_mute_edge=1&include_can_dm=1&include_can_media_tag=1&include_ext_has_nft_avatar=1&include_ext_is_blue_verified=1&include_ext_verified_type=1&skip_status=1&cards_platform=Web-12&include_cards=1&include_ext_alt_text=true&include_ext_limited_action_results=false&include_quote_count=true&include_reply_count=1&tweet_mode=extended&include_ext_collab_control=true&include_ext_views=true&include_entities=true&include_user_entities=true&include_ext_media_color=true&include_ext_media_availability=true&include_ext_sensitive_media_warning=true&include_ext_trusted_friends_metadata=true&send_error_codes=true&simple_quoted_tweet=true&q=%24TOMO+min_faves%3A3&tweet_search_mode=live&count=20&query_source=spelling_expansion_revert_click&pc=1&spelling_corrections=1&include_ext_edit_control=true&ext=mediaStats%2ChighlightedLabel%2ChasNftAvatar%2CvoiceInfo%2Cenrichments%2CsuperFollowMetadata%2CunmentionInfo%2CeditControl%2Ccollab_control%2Cvibe: non-200 status code (401)

Dump of locals

No response

Additional context

No response

@0xTechnician 0xTechnician added the bug Something isn't working label Apr 15, 2023
@Diegozu97
Copy link

I am also having the same issue at the moment.

@NicoBerlo
Copy link

Actually the error returned by twitter is :
{"errors":[{"message":"Bad Authentication data","code":215}]}

@Diegozu97
Copy link

I get.

Errors: non-200 status code (401), non-200 status code (401), non-200 status code (401), non-200 status code (401)

@porgej
Copy link

porgej commented Apr 15, 2023

I am also experiencing the same issue as displayed beneath:

Errors at:
for i, tweet in enumerate(sntwitter.TwitterSearchScraper(f'{tweet} since:{yday} until:{tday}').get_items()):

@Yomguithereal
Copy link

Related to medialab/minet#682

@JustAnotherArchivist JustAnotherArchivist added duplicate This issue or pull request already exists and removed bug Something isn't working labels Apr 15, 2023
@JustAnotherArchivist
Copy link
Owner

Duplicate of #834

@JustAnotherArchivist JustAnotherArchivist marked this as a duplicate of #834 Apr 15, 2023
@JustAnotherArchivist JustAnotherArchivist closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

6 participants