Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

search does not require authentication #101

Closed
ghost opened this issue May 20, 2023 · 8 comments
Closed

search does not require authentication #101

ghost opened this issue May 20, 2023 · 8 comments

Comments

@ghost
Copy link

ghost commented May 20, 2023

If you use the Android app for example, you can search without authentication. monitoring the requests returns this:

GET /2/search/adaptive.json?cards_platform=Android-12&earned=true&ext=mediaRestrictions%2CaltText%2CmediaStats%2CmediaColor%2Cinfo360%2ChighlightedLabel%2ChasNftAvatar%2CunmentionInfo%2CeditControl%2CpreviousCounts%2ClimitedActionResults%2CsuperFollowMetadata&include_blocked_by=true&include_blocking=true&include_cards=true&include_carousels=true&include_composer_source=true&include_entities=true&include_ext_birdwatch_pivot=true&include_ext_edit_control=true&include_ext_has_nft_avatar=true&include_ext_is_blue_verified=true&include_ext_is_blue_verified=true&include_ext_is_tweet_translatable=true&include_ext_is_tweet_translatable=true&include_ext_limited_action_results=true&include_ext_media_availability=true&include_ext_previous_counts=true&include_ext_professional=true&include_ext_profile_image_shape=true&include_ext_profile_image_shape=true&include_ext_sensitive_media_warning=true&include_ext_trusted_friends_metadata=true&include_ext_verified_type=true&include_ext_verified_type=true&include_ext_views=true&include_media_features=true&include_profile_interstitial_type=true&include_quote_count=true&include_reply_count=true&include_user_entities=true&include_viewer_quick_promote_eligibility=true&q=filter%3Aspaces&query_source=typed_query&simple_quoted_tweet=true&spelling_corrections=true&tweet_mode=extended&tweet_search_mode=top HTTP/1.1
Host: api.twitter.com
Authorization: OAuth oauth_consumer_key="3nVuSoBZnx6U4vzUxf5w",oauth_nonce="5775992602006906429184916339582",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1684614059",oauth_version="1.0",oauth_token="1660017733327630336-FClvhvGL5hO3eahU1O2cuCBHbEwOyc",oauth_signature="I64WGB%2BOG0Pe87pCKzi4w091w2w%3D"
@n0madic
Copy link
Owner

n0madic commented May 20, 2023

This package uses the frontend API
endpoint: https://twitter.com/i/api/2/search/adaptive.json

@ghost
Copy link
Author

ghost commented May 20, 2023

OK, but are you willing to throw away anonymous support just because you dont want to consider other clients?

@n0madic
Copy link
Owner

n0madic commented May 20, 2023

Suggest an example of anonymous search without OAuth authorization like in this issue

@ghost
Copy link
Author

ghost commented May 20, 2023

OK, I guess I will write the code myself. I know its possible using Android credentials:

identifier = "3nVuSoBZnx6U4vzUxf5w"
password = "Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys"

for anonymous access. but it seems you are not interested.

@n0madic
Copy link
Owner

n0madic commented May 20, 2023

I am not aware of this method - can you elaborate?

@ghost
Copy link
Author

ghost commented May 28, 2023

note the above user @omertoast wants this feature implemented so that they can use it with their private, company software:

Untitled

I have implemented the new anonymous authentication, but I did not do it so that companies could get free code off my back. I am closing this. If someone has PUBLIC TWITTER code, then contact me for free help. otherwise for people with private code, I only offer paid support.

@ghost ghost closed this as completed May 28, 2023
@karashiiro
Copy link

soooo... were you planning on releasing that example? More than one person in the world can make use of this (I maintain a TypeScript port of this library and the auth requirement is concerning for CI).

@ghost
Copy link
Author

ghost commented May 28, 2023

sorry but because of the actions of @omertoast - I am forced to do any further communication privately. feel free to contact me with the info on my user page.

@ghost ghost mentioned this issue May 28, 2023
n0madic pushed a commit that referenced this issue May 30, 2023
imperatrona pushed a commit to imperatrona/twitter-scraper that referenced this issue Mar 9, 2024
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants