twitter-api-v2

From yesterday i'm facing the issue of snscrape with twitter

From yesterday i'm facing the issue of snscrape with twitter Question: ScraperException: 4 requests to 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&skip_status=1&cards_platform=Web-12&include_cards=1&include_ext_alt_text=true&include_quote_count=true&include_reply_count=1&tweet_mode=extended&include_entities=true&include_user_entities=true&include_ext_media_color=true&include_ext_media_availability=true&send_error_codes=true&simple_quoted_tweets=true&q=%28from%3AZeeNewsEnglish%29+until%3A2023-01-12+since%3A2023-01-08+-filter%3Areplies&count=100&query_source=spelling_expansion_revert_click&pc=1&spelling_corrections=1&ext=mediaStats%2ChighlightedLabel failed, giving up. I tried following code : import snscrape.modules.twitter as sntwitter import time query5 = "(from:BBC) until:2023-01-12 since:2023-01-08 -filter:replies" news = [query5] tweets = [] for news_data in news: limit = 500 for tweet in sntwitter.TwitterSearchScraper(news_data).get_items(): # print(vars(tweet)) …

Total answers: 2

Retrieve viral tweets topic from Twitter API

Retrieve viral tweets topic from Twitter API Question: I’m trying to retrieve viral tweets for an academic project using the Twitter API v2. There is a Topic on Twitter called "viral tweets" which is perfect for what I want. It has id 1284234742661963776 so my thoughts was to query using context annotations. However there is …

Total answers: 1