x-twitter-scraper 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/LICENSE +201 -0
- data/README.md +10 -12
- data/lib/x_twitter_scraper/client.rb +30 -26
- data/lib/x_twitter_scraper/internal/transport/base_client.rb +5 -0
- data/lib/x_twitter_scraper/internal/type/base_model.rb +4 -3
- data/lib/x_twitter_scraper/internal/util.rb +3 -1
- data/lib/x_twitter_scraper/models/account_retrieve_response.rb +138 -23
- data/lib/x_twitter_scraper/models/content_disclosure.rb +66 -0
- data/lib/x_twitter_scraper/models/credit_redirect_topup_checkout_params.rb +22 -0
- data/lib/x_twitter_scraper/models/credit_retrieve_balance_response.rb +37 -10
- data/lib/x_twitter_scraper/models/credit_retrieve_topup_status_params.rb +22 -0
- data/lib/x_twitter_scraper/models/credit_retrieve_topup_status_response.rb +45 -0
- data/lib/x_twitter_scraper/models/credit_topup_balance_params.rb +13 -5
- data/lib/x_twitter_scraper/models/credit_topup_balance_response.rb +18 -5
- data/lib/x_twitter_scraper/models/draft_list_params.rb +8 -2
- data/lib/x_twitter_scraper/models/draw_detail.rb +15 -1
- data/lib/x_twitter_scraper/models/draw_export_params.rb +3 -3
- data/lib/x_twitter_scraper/models/draw_list_item.rb +8 -1
- data/lib/x_twitter_scraper/models/draw_list_params.rb +13 -7
- data/lib/x_twitter_scraper/models/draw_run_response.rb +13 -2
- data/lib/x_twitter_scraper/models/embedded_tweet.rb +202 -0
- data/lib/x_twitter_scraper/models/error.rb +203 -34
- data/lib/x_twitter_scraper/models/event.rb +48 -6
- data/lib/x_twitter_scraper/models/event_detail.rb +46 -7
- data/lib/x_twitter_scraper/models/event_list_params.rb +13 -7
- data/lib/x_twitter_scraper/models/event_type.rb +17 -2
- data/lib/x_twitter_scraper/models/extraction_estimate_cost_params.rb +308 -7
- data/lib/x_twitter_scraper/models/extraction_estimate_cost_response.rb +38 -14
- data/lib/x_twitter_scraper/models/extraction_export_results_params.rb +3 -3
- data/lib/x_twitter_scraper/models/extraction_job.rb +3 -0
- data/lib/x_twitter_scraper/models/extraction_list_params.rb +16 -7
- data/lib/x_twitter_scraper/models/extraction_retrieve_params.rb +5 -5
- data/lib/x_twitter_scraper/models/extraction_retrieve_response.rb +2 -2
- data/lib/x_twitter_scraper/models/extraction_run_params.rb +304 -7
- data/lib/x_twitter_scraper/models/extraction_run_response.rb +3 -0
- data/lib/x_twitter_scraper/models/guest_wallet_amount.rb +25 -0
- data/lib/x_twitter_scraper/models/guest_wallet_create_params.rb +36 -0
- data/lib/x_twitter_scraper/models/guest_wallet_create_response.rb +161 -0
- data/lib/x_twitter_scraper/models/{integration_list_params.rb → guest_wallet_retrieve_status_params.rb} +2 -2
- data/lib/x_twitter_scraper/models/guest_wallet_retrieve_status_response.rb +196 -0
- data/lib/x_twitter_scraper/models/guest_wallet_topup_params.rb +36 -0
- data/lib/x_twitter_scraper/models/guest_wallet_topup_response.rb +172 -0
- data/lib/x_twitter_scraper/models/monitor.rb +9 -1
- data/lib/x_twitter_scraper/models/monitor_create_response.rb +16 -1
- data/lib/x_twitter_scraper/models/monitors/keyword_create_params.rb +34 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_create_response.rb +59 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_deactivate_params.rb +22 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_deactivate_response.rb +18 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_list_params.rb +16 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_list_response.rb +76 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_retrieve_params.rb +22 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_retrieve_response.rb +59 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_update_params.rb +40 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_update_response.rb +59 -0
- data/lib/x_twitter_scraper/models/paginated_tweets.rb +8 -4
- data/lib/x_twitter_scraper/models/paginated_users.rb +8 -4
- data/lib/x_twitter_scraper/models/radar_item.rb +99 -6
- data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rb +39 -14
- data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rb +14 -5
- data/lib/x_twitter_scraper/models/search_tweet.rb +236 -0
- data/lib/x_twitter_scraper/models/subscribe_create_params.rb +21 -1
- data/lib/x_twitter_scraper/models/subscribe_create_response.rb +10 -10
- data/lib/x_twitter_scraper/models/trend_list_params.rb +7 -4
- data/lib/x_twitter_scraper/models/tweet_media.rb +77 -0
- data/lib/x_twitter_scraper/models/user_profile.rb +258 -0
- data/lib/x_twitter_scraper/models/webhook.rb +46 -1
- data/lib/x_twitter_scraper/models/webhook_create_response.rb +2 -1
- data/lib/x_twitter_scraper/models/{api_key_revoke_params.rb → webhook_resume_params.rb} +2 -2
- data/lib/x_twitter_scraper/models/webhook_resume_response.rb +31 -0
- data/lib/x_twitter_scraper/models/x/account_connection_challenge_submit_params.rb +31 -0
- data/lib/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rb +66 -0
- data/lib/x_twitter_scraper/models/x/account_create_params.rb +1 -9
- data/lib/x_twitter_scraper/models/x/account_create_response.rb +30 -1
- data/lib/x_twitter_scraper/models/x/account_reauth_params.rb +9 -1
- data/lib/x_twitter_scraper/models/x/account_reauth_response.rb +36 -1
- data/lib/x_twitter_scraper/models/x/bookmark_retrieve_folders_response.rb +6 -2
- data/lib/x_twitter_scraper/models/x/communities/join_create_response.rb +20 -0
- data/lib/x_twitter_scraper/models/x/communities/join_delete_all_response.rb +20 -0
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rb +17 -1
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_params.rb +43 -9
- data/lib/x_twitter_scraper/models/x/community_retrieve_info_response.rb +69 -1
- data/lib/x_twitter_scraper/models/x/community_retrieve_members_params.rb +14 -1
- data/lib/x_twitter_scraper/models/x/community_retrieve_search_params.rb +38 -4
- data/lib/x_twitter_scraper/models/x/dm_retrieve_history_params.rb +13 -1
- data/lib/x_twitter_scraper/models/x/dm_retrieve_history_response.rb +26 -9
- data/lib/x_twitter_scraper/models/x/dm_send_params.rb +3 -9
- data/lib/x_twitter_scraper/models/x/follower_check_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/list_retrieve_followers_params.rb +15 -1
- data/lib/x_twitter_scraper/models/x/list_retrieve_members_params.rb +9 -1
- data/lib/x_twitter_scraper/models/x/list_retrieve_tweets_params.rb +16 -1
- data/lib/x_twitter_scraper/models/x/media_download_params.rb +19 -3
- data/lib/x_twitter_scraper/models/x/media_upload_params.rb +8 -15
- data/lib/x_twitter_scraper/models/x/media_upload_response.rb +10 -1
- data/lib/x_twitter_scraper/models/x/profile_update_avatar_params.rb +8 -8
- data/lib/x_twitter_scraper/models/x/profile_update_banner_params.rb +8 -8
- data/lib/x_twitter_scraper/models/x/tweet_author.rb +4 -21
- data/lib/x_twitter_scraper/models/x/tweet_create_params.rb +18 -11
- data/lib/x_twitter_scraper/models/x/tweet_create_response.rb +28 -1
- data/lib/x_twitter_scraper/models/x/tweet_detail.rb +109 -43
- data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_params.rb +15 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_quotes_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_params.rb +15 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_thread_params.rb +16 -1
- data/lib/x_twitter_scraper/models/x/tweet_retrieve_response.rb +9 -4
- data/lib/x_twitter_scraper/models/x/tweet_search_params.rb +314 -8
- data/lib/x_twitter_scraper/models/x/user_remove_follower_params.rb +31 -0
- data/lib/x_twitter_scraper/models/x/user_remove_follower_response.rb +18 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_batch_params.rb +6 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_batch_response.rb +83 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_params.rb +25 -3
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rb +16 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_following_params.rb +25 -3
- data/lib/x_twitter_scraper/models/x/user_retrieve_likes_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_media_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_mentions_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_replies_params.rb +306 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rb +16 -1
- data/lib/x_twitter_scraper/models/x/write_action_retrieve_params.rb +22 -0
- data/lib/x_twitter_scraper/models/x/write_action_retrieve_response.rb +173 -0
- data/lib/x_twitter_scraper/models/x/x_account.rb +56 -2
- data/lib/x_twitter_scraper/models/x/x_account_detail.rb +23 -8
- data/lib/x_twitter_scraper/models/x_get_article_response.rb +189 -11
- data/lib/x_twitter_scraper/models/x_get_home_timeline_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x_get_notifications_params.rb +3 -3
- data/lib/x_twitter_scraper/models/x_get_trends_params.rb +17 -1
- data/lib/x_twitter_scraper/models.rb +21 -21
- data/lib/x_twitter_scraper/resources/account.rb +1 -3
- data/lib/x_twitter_scraper/resources/compose.rb +1 -1
- data/lib/x_twitter_scraper/resources/credits.rb +54 -4
- data/lib/x_twitter_scraper/resources/drafts.rb +7 -4
- data/lib/x_twitter_scraper/resources/draws.rb +14 -8
- data/lib/x_twitter_scraper/resources/events.rb +7 -5
- data/lib/x_twitter_scraper/resources/extractions.rb +145 -20
- data/lib/x_twitter_scraper/resources/guest_wallets.rb +108 -0
- data/lib/x_twitter_scraper/resources/monitors/keywords.rb +128 -0
- data/lib/x_twitter_scraper/resources/monitors.rb +13 -5
- data/lib/x_twitter_scraper/resources/radar.rb +8 -6
- data/lib/x_twitter_scraper/resources/styles.rb +1 -1
- data/lib/x_twitter_scraper/resources/subscribe.rb +9 -4
- data/lib/x_twitter_scraper/resources/support/tickets.rb +3 -3
- data/lib/x_twitter_scraper/resources/trends.rb +7 -4
- data/lib/x_twitter_scraper/resources/webhooks.rb +25 -5
- data/lib/x_twitter_scraper/resources/x/account_connection_challenges.rb +41 -0
- data/lib/x_twitter_scraper/resources/x/accounts.rb +7 -13
- data/lib/x_twitter_scraper/resources/x/bookmarks.rb +1 -1
- data/lib/x_twitter_scraper/resources/x/communities/join.rb +6 -6
- data/lib/x_twitter_scraper/resources/x/communities/tweets.rb +27 -10
- data/lib/x_twitter_scraper/resources/x/communities.rb +27 -11
- data/lib/x_twitter_scraper/resources/x/dm.rb +9 -6
- data/lib/x_twitter_scraper/resources/x/followers.rb +4 -4
- data/lib/x_twitter_scraper/resources/x/lists.rb +22 -9
- data/lib/x_twitter_scraper/resources/x/media.rb +11 -9
- data/lib/x_twitter_scraper/resources/x/profile.rb +6 -6
- data/lib/x_twitter_scraper/resources/x/tweets.rb +282 -28
- data/lib/x_twitter_scraper/resources/x/users.rb +485 -34
- data/lib/x_twitter_scraper/resources/x/write_actions.rb +37 -0
- data/lib/x_twitter_scraper/resources/x.rb +33 -13
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/lib/x_twitter_scraper.rb +41 -27
- data/rbi/x_twitter_scraper/client.rbi +14 -22
- data/rbi/x_twitter_scraper/models/account_retrieve_response.rbi +181 -23
- data/rbi/x_twitter_scraper/models/content_disclosure.rbi +149 -0
- data/rbi/x_twitter_scraper/models/{integration_retrieve_params.rbi → credit_redirect_topup_checkout_params.rbi} +14 -6
- data/rbi/x_twitter_scraper/models/credit_retrieve_balance_response.rbi +35 -9
- data/rbi/x_twitter_scraper/models/{integration_list_deliveries_params.rbi → credit_retrieve_topup_status_params.rbi} +8 -17
- data/rbi/x_twitter_scraper/models/credit_retrieve_topup_status_response.rbi +107 -0
- data/rbi/x_twitter_scraper/models/credit_topup_balance_params.rbi +20 -6
- data/rbi/x_twitter_scraper/models/credit_topup_balance_response.rbi +19 -5
- data/rbi/x_twitter_scraper/models/draft_list_params.rbi +8 -2
- data/rbi/x_twitter_scraper/models/draw_detail.rbi +2 -0
- data/rbi/x_twitter_scraper/models/draw_export_params.rbi +3 -12
- data/rbi/x_twitter_scraper/models/draw_list_item.rbi +2 -0
- data/rbi/x_twitter_scraper/models/draw_list_params.rbi +16 -10
- data/rbi/x_twitter_scraper/models/draw_run_response.rbi +15 -1
- data/rbi/x_twitter_scraper/models/embedded_tweet.rbi +255 -0
- data/rbi/x_twitter_scraper/models/error.rbi +865 -87
- data/rbi/x_twitter_scraper/models/event.rbi +63 -4
- data/rbi/x_twitter_scraper/models/event_detail.rbi +73 -5
- data/rbi/x_twitter_scraper/models/event_list_params.rbi +16 -10
- data/rbi/x_twitter_scraper/models/event_type.rbi +58 -4
- data/rbi/x_twitter_scraper/models/extraction_estimate_cost_params.rbi +580 -2
- data/rbi/x_twitter_scraper/models/extraction_estimate_cost_response.rbi +98 -14
- data/rbi/x_twitter_scraper/models/extraction_export_results_params.rbi +3 -13
- data/rbi/x_twitter_scraper/models/extraction_job.rbi +15 -0
- data/rbi/x_twitter_scraper/models/extraction_list_params.rbi +31 -10
- data/rbi/x_twitter_scraper/models/extraction_retrieve_params.rbi +8 -8
- data/rbi/x_twitter_scraper/models/extraction_retrieve_response.rbi +2 -2
- data/rbi/x_twitter_scraper/models/extraction_run_params.rbi +546 -2
- data/rbi/x_twitter_scraper/models/extraction_run_response.rbi +15 -0
- data/rbi/x_twitter_scraper/models/guest_wallet_amount.rbi +39 -0
- data/rbi/x_twitter_scraper/models/guest_wallet_create_params.rbi +58 -0
- data/rbi/x_twitter_scraper/models/guest_wallet_create_response.rbi +243 -0
- data/rbi/x_twitter_scraper/models/{integration_list_params.rbi → guest_wallet_retrieve_status_params.rbi} +2 -2
- data/rbi/x_twitter_scraper/models/guest_wallet_retrieve_status_response.rbi +402 -0
- data/rbi/x_twitter_scraper/models/guest_wallet_topup_params.rbi +58 -0
- data/rbi/x_twitter_scraper/models/guest_wallet_topup_response.rbi +293 -0
- data/rbi/x_twitter_scraper/models/monitor.rbi +8 -0
- data/rbi/x_twitter_scraper/models/monitor_create_response.rbi +14 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_create_params.rbi +56 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_create_response.rbi +75 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_deactivate_params.rbi +40 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_deactivate_response.rbi +28 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_list_params.rbi +34 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_list_response.rbi +123 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_retrieve_params.rbi +40 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_retrieve_response.rbi +75 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_update_params.rbi +72 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_update_response.rbi +75 -0
- data/rbi/x_twitter_scraper/models/paginated_tweets.rbi +8 -4
- data/rbi/x_twitter_scraper/models/paginated_users.rbi +8 -4
- data/rbi/x_twitter_scraper/models/radar_item.rbi +131 -6
- data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbi +109 -20
- data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbi +22 -5
- data/rbi/x_twitter_scraper/models/search_tweet.rbi +316 -0
- data/rbi/x_twitter_scraper/models/subscribe_create_params.rbi +62 -2
- data/rbi/x_twitter_scraper/models/subscribe_create_response.rbi +10 -23
- data/rbi/x_twitter_scraper/models/trend_list_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/tweet_media.rbi +130 -0
- data/rbi/x_twitter_scraper/models/user_profile.rbi +346 -0
- data/rbi/x_twitter_scraper/models/webhook.rbi +57 -0
- data/rbi/x_twitter_scraper/models/webhook_create_response.rbi +2 -0
- data/rbi/x_twitter_scraper/models/{api_key_revoke_params.rbi → webhook_resume_params.rbi} +2 -2
- data/rbi/x_twitter_scraper/models/webhook_resume_response.rbi +55 -0
- data/rbi/x_twitter_scraper/models/x/account_connection_challenge_submit_params.rbi +54 -0
- data/rbi/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rbi +131 -0
- data/rbi/x_twitter_scraper/models/x/account_create_params.rbi +0 -11
- data/rbi/x_twitter_scraper/models/x/account_create_response.rbi +79 -1
- data/rbi/x_twitter_scraper/models/x/account_reauth_params.rbi +11 -0
- data/rbi/x_twitter_scraper/models/x/account_reauth_response.rbi +96 -5
- data/rbi/x_twitter_scraper/models/x/bookmark_retrieve_folders_response.rbi +9 -1
- data/rbi/x_twitter_scraper/models/x/communities/join_create_response.rbi +30 -0
- data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_response.rbi +30 -0
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbi +19 -0
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_params.rbi +85 -10
- data/rbi/x_twitter_scraper/models/x/community_retrieve_info_response.rbi +115 -0
- data/rbi/x_twitter_scraper/models/x/community_retrieve_members_params.rbi +15 -0
- data/rbi/x_twitter_scraper/models/x/community_retrieve_search_params.rbi +79 -4
- data/rbi/x_twitter_scraper/models/x/dm_retrieve_history_params.rbi +10 -0
- data/rbi/x_twitter_scraper/models/x/dm_retrieve_history_response.rbi +20 -13
- data/rbi/x_twitter_scraper/models/x/dm_send_params.rbi +2 -9
- data/rbi/x_twitter_scraper/models/x/follower_check_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/list_retrieve_followers_params.rbi +17 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_members_params.rbi +11 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_tweets_params.rbi +19 -0
- data/rbi/x_twitter_scraper/models/x/media_download_params.rbi +24 -2
- data/rbi/x_twitter_scraper/models/x/media_upload_params.rbi +9 -18
- data/rbi/x_twitter_scraper/models/x/media_upload_response.rbi +20 -5
- data/rbi/x_twitter_scraper/models/x/profile_update_avatar_params.rbi +9 -9
- data/rbi/x_twitter_scraper/models/x/profile_update_banner_params.rbi +9 -9
- data/rbi/x_twitter_scraper/models/x/tweet_author.rbi +8 -39
- data/rbi/x_twitter_scraper/models/x/tweet_create_params.rbi +23 -12
- data/rbi/x_twitter_scraper/models/x/tweet_create_response.rbi +41 -5
- data/rbi/x_twitter_scraper/models/x/tweet_detail.rbi +156 -115
- data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_params.rbi +17 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_params.rbi +508 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_params.rbi +512 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_params.rbi +17 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_thread_params.rbi +19 -0
- data/rbi/x_twitter_scraper/models/x/tweet_retrieve_response.rbi +8 -4
- data/rbi/x_twitter_scraper/models/x/tweet_search_params.rbi +557 -7
- data/rbi/x_twitter_scraper/models/x/user_remove_follower_params.rbi +54 -0
- data/rbi/x_twitter_scraper/models/x/user_remove_follower_response.rbi +28 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_batch_params.rbi +4 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_batch_response.rbi +102 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_params.rbi +30 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rbi +17 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_following_params.rbi +30 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_params.rbi +520 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_media_params.rbi +520 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbi +523 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_replies_params.rbi +591 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbi +523 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rbi +17 -0
- data/rbi/x_twitter_scraper/models/x/write_action_retrieve_params.rbi +40 -0
- data/rbi/x_twitter_scraper/models/x/write_action_retrieve_response.rbi +313 -0
- data/rbi/x_twitter_scraper/models/x/x_account.rbi +87 -4
- data/rbi/x_twitter_scraper/models/x/x_account_detail.rbi +58 -10
- data/rbi/x_twitter_scraper/models/x_get_article_response.rbi +308 -12
- data/rbi/x_twitter_scraper/models/x_get_home_timeline_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x_get_notifications_params.rbi +3 -3
- data/rbi/x_twitter_scraper/models/x_get_trends_params.rbi +30 -2
- data/rbi/x_twitter_scraper/models.rbi +24 -22
- data/rbi/x_twitter_scraper/resources/account.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/compose.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/credits.rbi +37 -5
- data/rbi/x_twitter_scraper/resources/drafts.rbi +7 -4
- data/rbi/x_twitter_scraper/resources/draws.rbi +14 -8
- data/rbi/x_twitter_scraper/resources/events.rbi +8 -5
- data/rbi/x_twitter_scraper/resources/extractions.rbi +210 -11
- data/rbi/x_twitter_scraper/resources/guest_wallets.rbi +76 -0
- data/rbi/x_twitter_scraper/resources/monitors/keywords.rbi +95 -0
- data/rbi/x_twitter_scraper/resources/monitors.rbi +12 -5
- data/rbi/x_twitter_scraper/resources/radar.rbi +12 -8
- data/rbi/x_twitter_scraper/resources/styles.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/subscribe.rbi +9 -3
- data/rbi/x_twitter_scraper/resources/support/tickets.rbi +3 -3
- data/rbi/x_twitter_scraper/resources/trends.rbi +4 -4
- data/rbi/x_twitter_scraper/resources/webhooks.rbi +19 -5
- data/rbi/x_twitter_scraper/resources/x/account_connection_challenges.rbi +36 -0
- data/rbi/x_twitter_scraper/resources/x/accounts.rbi +6 -6
- data/rbi/x_twitter_scraper/resources/x/bookmarks.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/x/communities/join.rbi +8 -4
- data/rbi/x_twitter_scraper/resources/x/communities/tweets.rbi +25 -7
- data/rbi/x_twitter_scraper/resources/x/communities.rbi +23 -7
- data/rbi/x_twitter_scraper/resources/x/dm.rbi +5 -2
- data/rbi/x_twitter_scraper/resources/x/followers.rbi +4 -4
- data/rbi/x_twitter_scraper/resources/x/lists.rbi +20 -4
- data/rbi/x_twitter_scraper/resources/x/media.rbi +13 -9
- data/rbi/x_twitter_scraper/resources/x/profile.rbi +8 -8
- data/rbi/x_twitter_scraper/resources/x/tweets.rbi +309 -16
- data/rbi/x_twitter_scraper/resources/x/users.rbi +520 -18
- data/rbi/x_twitter_scraper/resources/x/write_actions.rbi +31 -0
- data/rbi/x_twitter_scraper/resources/x.rbi +30 -12
- data/sig/x_twitter_scraper/client.rbs +2 -6
- data/sig/x_twitter_scraper/models/account_retrieve_response.rbs +106 -19
- data/sig/x_twitter_scraper/models/content_disclosure.rbs +78 -0
- data/sig/x_twitter_scraper/models/{api_key_create_params.rbs → credit_redirect_topup_checkout_params.rbs} +7 -8
- data/sig/x_twitter_scraper/models/credit_retrieve_balance_response.rbs +22 -12
- data/sig/x_twitter_scraper/models/{integration_list_deliveries_params.rbs → credit_retrieve_topup_status_params.rbs} +6 -12
- data/sig/x_twitter_scraper/models/credit_retrieve_topup_status_response.rbs +45 -0
- data/sig/x_twitter_scraper/models/credit_topup_balance_params.rbs +11 -4
- data/sig/x_twitter_scraper/models/credit_topup_balance_response.rbs +6 -4
- data/sig/x_twitter_scraper/models/draw_export_params.rbs +2 -6
- data/sig/x_twitter_scraper/models/draw_list_params.rbs +5 -5
- data/sig/x_twitter_scraper/models/embedded_tweet.rbs +187 -0
- data/sig/x_twitter_scraper/models/error.rbs +341 -54
- data/sig/x_twitter_scraper/models/event.rbs +34 -2
- data/sig/x_twitter_scraper/models/event_detail.rbs +34 -2
- data/sig/x_twitter_scraper/models/event_list_params.rbs +5 -5
- data/sig/x_twitter_scraper/models/event_type.rbs +34 -4
- data/sig/x_twitter_scraper/models/extraction_estimate_cost_params.rbs +269 -1
- data/sig/x_twitter_scraper/models/extraction_estimate_cost_response.rbs +46 -12
- data/sig/x_twitter_scraper/models/extraction_export_results_params.rbs +2 -6
- data/sig/x_twitter_scraper/models/extraction_job.rbs +6 -0
- data/sig/x_twitter_scraper/models/extraction_list_params.rbs +11 -5
- data/sig/x_twitter_scraper/models/extraction_retrieve_params.rbs +5 -5
- data/sig/x_twitter_scraper/models/extraction_run_params.rbs +269 -1
- data/sig/x_twitter_scraper/models/extraction_run_response.rbs +6 -0
- data/sig/x_twitter_scraper/models/guest_wallet_amount.rbs +15 -0
- data/sig/x_twitter_scraper/models/guest_wallet_create_params.rbs +32 -0
- data/sig/x_twitter_scraper/models/guest_wallet_create_response.rbs +125 -0
- data/sig/x_twitter_scraper/models/{api_key_list_params.rbs → guest_wallet_retrieve_status_params.rbs} +2 -2
- data/sig/x_twitter_scraper/models/guest_wallet_retrieve_status_response.rbs +163 -0
- data/sig/x_twitter_scraper/models/guest_wallet_topup_params.rbs +32 -0
- data/sig/x_twitter_scraper/models/guest_wallet_topup_response.rbs +146 -0
- data/sig/x_twitter_scraper/models/monitor.rbs +5 -0
- data/sig/x_twitter_scraper/models/monitor_create_response.rbs +10 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_create_params.rbs +33 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_create_response.rbs +47 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_deactivate_params.rbs +25 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_deactivate_response.rbs +15 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_list_params.rbs +19 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_list_response.rbs +69 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_retrieve_params.rbs +25 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_retrieve_response.rbs +47 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_update_params.rbs +44 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_update_response.rbs +47 -0
- data/sig/x_twitter_scraper/models/paginated_tweets.rbs +4 -4
- data/sig/x_twitter_scraper/models/paginated_users.rbs +4 -4
- data/sig/x_twitter_scraper/models/radar_item.rbs +81 -8
- data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbs +44 -10
- data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbs +14 -4
- data/sig/x_twitter_scraper/models/search_tweet.rbs +205 -0
- data/sig/x_twitter_scraper/models/subscribe_create_params.rbs +28 -3
- data/sig/x_twitter_scraper/models/subscribe_create_response.rbs +10 -16
- data/sig/x_twitter_scraper/models/tweet_media.rbs +72 -0
- data/sig/x_twitter_scraper/models/user_profile.rbs +247 -0
- data/sig/x_twitter_scraper/models/webhook.rbs +27 -0
- data/sig/x_twitter_scraper/models/{api_key_revoke_params.rbs → webhook_resume_params.rbs} +2 -2
- data/sig/x_twitter_scraper/models/webhook_resume_response.rbs +26 -0
- data/sig/x_twitter_scraper/models/x/account_connection_challenge_submit_params.rbs +30 -0
- data/sig/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rbs +68 -0
- data/sig/x_twitter_scraper/models/x/account_create_params.rbs +0 -7
- data/sig/x_twitter_scraper/models/x/account_create_response.rbs +37 -1
- data/sig/x_twitter_scraper/models/x/account_reauth_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/account_reauth_response.rbs +51 -3
- data/sig/x_twitter_scraper/models/x/communities/join_create_response.rbs +17 -0
- data/sig/x_twitter_scraper/models/x/communities/join_delete_all_response.rbs +17 -0
- data/sig/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/communities/tweet_list_params.rbs +34 -5
- data/sig/x_twitter_scraper/models/x/community_retrieve_info_response.rbs +66 -0
- data/sig/x_twitter_scraper/models/x/community_retrieve_members_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/community_retrieve_search_params.rbs +34 -5
- data/sig/x_twitter_scraper/models/x/dm_retrieve_history_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/dm_retrieve_history_response.rbs +13 -10
- data/sig/x_twitter_scraper/models/x/dm_send_params.rbs +1 -8
- data/sig/x_twitter_scraper/models/x/list_retrieve_followers_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/list_retrieve_members_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/list_retrieve_tweets_params.rbs +7 -0
- data/sig/x_twitter_scraper/models/x/media_download_params.rbs +18 -1
- data/sig/x_twitter_scraper/models/x/media_upload_params.rbs +4 -14
- data/sig/x_twitter_scraper/models/x/media_upload_response.rbs +10 -3
- data/sig/x_twitter_scraper/models/x/profile_update_avatar_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/profile_update_banner_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweet_author.rbs +8 -31
- data/sig/x_twitter_scraper/models/x/tweet_create_params.rbs +13 -11
- data/sig/x_twitter_scraper/models/x/tweet_create_response.rbs +30 -3
- data/sig/x_twitter_scraper/models/x/tweet_detail.rbs +99 -61
- data/sig/x_twitter_scraper/models/x/tweet_get_favoriters_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_quotes_params.rbs +242 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_replies_params.rbs +247 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_retweeters_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_thread_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/tweet_search_params.rbs +277 -1
- data/sig/x_twitter_scraper/models/x/user_remove_follower_params.rbs +30 -0
- data/sig/x_twitter_scraper/models/x/user_remove_follower_response.rbs +15 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_batch_response.rbs +57 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_params.rbs +19 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_following_params.rbs +19 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_likes_params.rbs +245 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_media_params.rbs +245 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbs +247 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_replies_params.rbs +283 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbs +242 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/write_action_retrieve_params.rbs +25 -0
- data/sig/x_twitter_scraper/models/x/write_action_retrieve_response.rbs +177 -0
- data/sig/x_twitter_scraper/models/x/x_account.rbs +41 -3
- data/sig/x_twitter_scraper/models/x/x_account_detail.rbs +26 -7
- data/sig/x_twitter_scraper/models/x_get_article_response.rbs +193 -6
- data/sig/x_twitter_scraper/models/x_get_trends_params.rbs +20 -3
- data/sig/x_twitter_scraper/models.rbs +21 -21
- data/sig/x_twitter_scraper/resources/credits.rbs +12 -1
- data/sig/x_twitter_scraper/resources/draws.rbs +2 -2
- data/sig/x_twitter_scraper/resources/events.rbs +1 -1
- data/sig/x_twitter_scraper/resources/extractions.rbs +61 -3
- data/sig/x_twitter_scraper/resources/guest_wallets.rbs +25 -0
- data/sig/x_twitter_scraper/resources/monitors/keywords.rbs +36 -0
- data/sig/x_twitter_scraper/resources/monitors.rbs +2 -0
- data/sig/x_twitter_scraper/resources/radar.rbs +3 -2
- data/sig/x_twitter_scraper/resources/subscribe.rbs +1 -0
- data/sig/x_twitter_scraper/resources/webhooks.rbs +5 -0
- data/sig/x_twitter_scraper/resources/x/account_connection_challenges.rbs +15 -0
- data/sig/x_twitter_scraper/resources/x/accounts.rbs +1 -1
- data/sig/x_twitter_scraper/resources/x/communities/join.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/communities/tweets.rbs +4 -1
- data/sig/x_twitter_scraper/resources/x/communities.rbs +4 -1
- data/sig/x_twitter_scraper/resources/x/dm.rbs +1 -1
- data/sig/x_twitter_scraper/resources/x/lists.rbs +3 -0
- data/sig/x_twitter_scraper/resources/x/media.rbs +3 -2
- data/sig/x_twitter_scraper/resources/x/profile.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/tweets.rbs +88 -2
- data/sig/x_twitter_scraper/resources/x/users.rbs +151 -2
- data/sig/x_twitter_scraper/resources/x/write_actions.rbs +14 -0
- data/sig/x_twitter_scraper/resources/x.rbs +6 -0
- metadata +141 -84
- data/lib/x_twitter_scraper/models/api_key.rb +0 -47
- data/lib/x_twitter_scraper/models/api_key_create_params.rb +0 -20
- data/lib/x_twitter_scraper/models/api_key_create_response.rb +0 -40
- data/lib/x_twitter_scraper/models/api_key_list_params.rb +0 -14
- data/lib/x_twitter_scraper/models/api_key_list_response.rb +0 -16
- data/lib/x_twitter_scraper/models/api_key_revoke_response.rb +0 -16
- data/lib/x_twitter_scraper/models/integration.rb +0 -93
- data/lib/x_twitter_scraper/models/integration_create_params.rb +0 -58
- data/lib/x_twitter_scraper/models/integration_delete_params.rb +0 -20
- data/lib/x_twitter_scraper/models/integration_delete_response.rb +0 -16
- data/lib/x_twitter_scraper/models/integration_delivery.rb +0 -71
- data/lib/x_twitter_scraper/models/integration_list_deliveries_params.rb +0 -29
- data/lib/x_twitter_scraper/models/integration_list_deliveries_response.rb +0 -17
- data/lib/x_twitter_scraper/models/integration_list_response.rb +0 -16
- data/lib/x_twitter_scraper/models/integration_retrieve_params.rb +0 -20
- data/lib/x_twitter_scraper/models/integration_send_test_params.rb +0 -20
- data/lib/x_twitter_scraper/models/integration_send_test_response.rb +0 -16
- data/lib/x_twitter_scraper/models/integration_update_params.rb +0 -77
- data/lib/x_twitter_scraper/models/x/community_action_result.rb +0 -31
- data/lib/x_twitter_scraper/models/x/search_tweet.rb +0 -119
- data/lib/x_twitter_scraper/models/x/user_profile.rb +0 -80
- data/lib/x_twitter_scraper/resources/api_keys.rb +0 -77
- data/lib/x_twitter_scraper/resources/bot/platform_links.rb +0 -16
- data/lib/x_twitter_scraper/resources/bot.rb +0 -18
- data/lib/x_twitter_scraper/resources/integrations.rb +0 -182
- data/rbi/x_twitter_scraper/models/api_key.rbi +0 -69
- data/rbi/x_twitter_scraper/models/api_key_create_params.rbi +0 -41
- data/rbi/x_twitter_scraper/models/api_key_create_response.rbi +0 -56
- data/rbi/x_twitter_scraper/models/api_key_list_params.rbi +0 -32
- data/rbi/x_twitter_scraper/models/api_key_list_response.rbi +0 -30
- data/rbi/x_twitter_scraper/models/api_key_revoke_response.rbi +0 -26
- data/rbi/x_twitter_scraper/models/integration.rbi +0 -117
- data/rbi/x_twitter_scraper/models/integration_create_params.rbi +0 -95
- data/rbi/x_twitter_scraper/models/integration_delete_params.rbi +0 -38
- data/rbi/x_twitter_scraper/models/integration_delete_response.rbi +0 -26
- data/rbi/x_twitter_scraper/models/integration_delivery.rbi +0 -108
- data/rbi/x_twitter_scraper/models/integration_list_deliveries_response.rbi +0 -34
- data/rbi/x_twitter_scraper/models/integration_list_response.rbi +0 -34
- data/rbi/x_twitter_scraper/models/integration_send_test_params.rbi +0 -38
- data/rbi/x_twitter_scraper/models/integration_send_test_response.rbi +0 -26
- data/rbi/x_twitter_scraper/models/integration_update_params.rbi +0 -115
- data/rbi/x_twitter_scraper/models/x/community_action_result.rbi +0 -49
- data/rbi/x_twitter_scraper/models/x/search_tweet.rbi +0 -181
- data/rbi/x_twitter_scraper/models/x/user_profile.rbi +0 -125
- data/rbi/x_twitter_scraper/resources/api_keys.rbi +0 -46
- data/rbi/x_twitter_scraper/resources/bot/platform_links.rbi +0 -16
- data/rbi/x_twitter_scraper/resources/bot.rbi +0 -15
- data/rbi/x_twitter_scraper/resources/integrations.rbi +0 -133
- data/sig/x_twitter_scraper/models/api_key.rbs +0 -47
- data/sig/x_twitter_scraper/models/api_key_create_response.rbs +0 -40
- data/sig/x_twitter_scraper/models/api_key_list_response.rbs +0 -13
- data/sig/x_twitter_scraper/models/api_key_revoke_response.rbs +0 -13
- data/sig/x_twitter_scraper/models/integration.rbs +0 -78
- data/sig/x_twitter_scraper/models/integration_create_params.rbs +0 -51
- data/sig/x_twitter_scraper/models/integration_delete_params.rbs +0 -23
- data/sig/x_twitter_scraper/models/integration_delete_response.rbs +0 -13
- data/sig/x_twitter_scraper/models/integration_delivery.rbs +0 -75
- data/sig/x_twitter_scraper/models/integration_list_deliveries_response.rbs +0 -18
- data/sig/x_twitter_scraper/models/integration_list_params.rbs +0 -15
- data/sig/x_twitter_scraper/models/integration_list_response.rbs +0 -16
- data/sig/x_twitter_scraper/models/integration_retrieve_params.rbs +0 -23
- data/sig/x_twitter_scraper/models/integration_send_test_params.rbs +0 -23
- data/sig/x_twitter_scraper/models/integration_send_test_response.rbs +0 -13
- data/sig/x_twitter_scraper/models/integration_update_params.rbs +0 -77
- data/sig/x_twitter_scraper/models/x/community_action_result.rbs +0 -28
- data/sig/x_twitter_scraper/models/x/search_tweet.rbs +0 -121
- data/sig/x_twitter_scraper/models/x/user_profile.rbs +0 -88
- data/sig/x_twitter_scraper/resources/api_keys.rbs +0 -21
- data/sig/x_twitter_scraper/resources/bot/platform_links.rbs +0 -9
- data/sig/x_twitter_scraper/resources/bot.rbs +0 -9
- data/sig/x_twitter_scraper/resources/integrations.rbs +0 -52
|
@@ -3,16 +3,20 @@
|
|
|
3
3
|
module XTwitterScraper
|
|
4
4
|
module Resources
|
|
5
5
|
class X
|
|
6
|
-
# Media upload
|
|
6
|
+
# Media upload and download
|
|
7
7
|
class Media
|
|
8
|
-
# Download
|
|
8
|
+
# Download images and videos from tweets
|
|
9
9
|
#
|
|
10
|
-
# @overload download(tweet_ids: nil, tweet_input: nil, request_options: {})
|
|
10
|
+
# @overload download(tweet_id: nil, tweet_ids: nil, tweet_input: nil, tweet_url: nil, request_options: {})
|
|
11
11
|
#
|
|
12
|
-
# @param
|
|
12
|
+
# @param tweet_id [String] Numeric tweet ID alias for tweetInput
|
|
13
|
+
#
|
|
14
|
+
# @param tweet_ids [Array<String>] Array of tweet URLs or IDs (bulk, max 50 string items)
|
|
13
15
|
#
|
|
14
16
|
# @param tweet_input [String] Tweet URL or ID (single tweet)
|
|
15
17
|
#
|
|
18
|
+
# @param tweet_url [String] Tweet URL alias for tweetInput
|
|
19
|
+
#
|
|
16
20
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
17
21
|
#
|
|
18
22
|
# @return [XTwitterScraper::Models::X::MediaDownloadResponse]
|
|
@@ -31,13 +35,11 @@ module XTwitterScraper
|
|
|
31
35
|
|
|
32
36
|
# Upload media
|
|
33
37
|
#
|
|
34
|
-
# @overload upload(account:,
|
|
35
|
-
#
|
|
36
|
-
# @param account [String] X account (@username or ID) uploading media
|
|
38
|
+
# @overload upload(account:, url:, request_options: {})
|
|
37
39
|
#
|
|
38
|
-
# @param
|
|
40
|
+
# @param account [String] X account (@username or ID) uploading media from URL
|
|
39
41
|
#
|
|
40
|
-
# @param
|
|
42
|
+
# @param url [String] HTTPS URL to download and upload as media
|
|
41
43
|
#
|
|
42
44
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
43
45
|
#
|
|
@@ -37,11 +37,11 @@ module XTwitterScraper
|
|
|
37
37
|
|
|
38
38
|
# Update profile avatar
|
|
39
39
|
#
|
|
40
|
-
# @overload update_avatar(account:,
|
|
40
|
+
# @overload update_avatar(account:, url:, request_options: {})
|
|
41
41
|
#
|
|
42
|
-
# @param account [String] X account (@username or ID)
|
|
42
|
+
# @param account [String] X account (@username or ID) receiving avatar from URL
|
|
43
43
|
#
|
|
44
|
-
# @param
|
|
44
|
+
# @param url [String] HTTPS URL to the avatar image to download
|
|
45
45
|
#
|
|
46
46
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
47
47
|
#
|
|
@@ -62,11 +62,11 @@ module XTwitterScraper
|
|
|
62
62
|
|
|
63
63
|
# Update profile banner
|
|
64
64
|
#
|
|
65
|
-
# @overload update_banner(account:,
|
|
65
|
+
# @overload update_banner(account:, url:, request_options: {})
|
|
66
66
|
#
|
|
67
|
-
# @param account [String] X account (@username or ID)
|
|
67
|
+
# @param account [String] X account (@username or ID) receiving banner from URL
|
|
68
68
|
#
|
|
69
|
-
# @param
|
|
69
|
+
# @param url [String] HTTPS URL to the banner image to download
|
|
70
70
|
#
|
|
71
71
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
72
72
|
#
|
|
@@ -12,24 +12,27 @@ module XTwitterScraper
|
|
|
12
12
|
# @return [XTwitterScraper::Resources::X::Tweets::Retweet]
|
|
13
13
|
attr_reader :retweet
|
|
14
14
|
|
|
15
|
+
# Some parameter documentations has been truncated, see
|
|
16
|
+
# {XTwitterScraper::Models::X::TweetCreateParams} for more details.
|
|
17
|
+
#
|
|
15
18
|
# Create tweet
|
|
16
19
|
#
|
|
17
|
-
# @overload create(account:,
|
|
20
|
+
# @overload create(account:, attachment_url: nil, community_id: nil, is_note_tweet: nil, media: nil, reply_to_tweet_id: nil, text: nil, request_options: {})
|
|
18
21
|
#
|
|
19
22
|
# @param account [String] X account (@username or account ID)
|
|
20
23
|
#
|
|
21
|
-
# @param text [String]
|
|
22
|
-
#
|
|
23
24
|
# @param attachment_url [String]
|
|
24
25
|
#
|
|
25
26
|
# @param community_id [String]
|
|
26
27
|
#
|
|
27
28
|
# @param is_note_tweet [Boolean]
|
|
28
29
|
#
|
|
29
|
-
# @param
|
|
30
|
+
# @param media [Array<String>] Array of public media URLs to attach. Supports up to 4 images or exactly 1 MP4 v
|
|
30
31
|
#
|
|
31
32
|
# @param reply_to_tweet_id [String]
|
|
32
33
|
#
|
|
34
|
+
# @param text [String] Tweet text (optional when media is provided)
|
|
35
|
+
#
|
|
33
36
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
34
37
|
#
|
|
35
38
|
# @return [XTwitterScraper::Models::X::TweetCreateResponse]
|
|
@@ -46,11 +49,11 @@ module XTwitterScraper
|
|
|
46
49
|
)
|
|
47
50
|
end
|
|
48
51
|
|
|
49
|
-
#
|
|
52
|
+
# Get tweet with full text, author, metrics and media
|
|
50
53
|
#
|
|
51
54
|
# @overload retrieve(id, request_options: {})
|
|
52
55
|
#
|
|
53
|
-
# @param id [String]
|
|
56
|
+
# @param id [String] Numeric tweet ID, 15-20 digits
|
|
54
57
|
#
|
|
55
58
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
56
59
|
#
|
|
@@ -113,14 +116,19 @@ module XTwitterScraper
|
|
|
113
116
|
)
|
|
114
117
|
end
|
|
115
118
|
|
|
116
|
-
#
|
|
119
|
+
# Some parameter documentations has been truncated, see
|
|
120
|
+
# {XTwitterScraper::Models::X::TweetGetFavoritersParams} for more details.
|
|
121
|
+
#
|
|
122
|
+
# List users who liked a tweet
|
|
117
123
|
#
|
|
118
|
-
# @overload get_favoriters(id, cursor: nil, request_options: {})
|
|
124
|
+
# @overload get_favoriters(id, cursor: nil, page_size: nil, request_options: {})
|
|
119
125
|
#
|
|
120
126
|
# @param id [String] Tweet ID to get favoriters
|
|
121
127
|
#
|
|
122
128
|
# @param cursor [String] Pagination cursor for favoriters
|
|
123
129
|
#
|
|
130
|
+
# @param page_size [Integer] Maximum user profiles requested from this page (20-200, default 200). The respon
|
|
131
|
+
#
|
|
124
132
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
125
133
|
#
|
|
126
134
|
# @return [XTwitterScraper::Models::PaginatedUsers]
|
|
@@ -132,26 +140,81 @@ module XTwitterScraper
|
|
|
132
140
|
@client.request(
|
|
133
141
|
method: :get,
|
|
134
142
|
path: ["x/tweets/%1$s/favoriters", id],
|
|
135
|
-
query: query,
|
|
143
|
+
query: query.transform_keys(page_size: "pageSize"),
|
|
136
144
|
model: XTwitterScraper::PaginatedUsers,
|
|
137
145
|
options: options
|
|
138
146
|
)
|
|
139
147
|
end
|
|
140
148
|
|
|
141
|
-
#
|
|
149
|
+
# Some parameter documentations has been truncated, see
|
|
150
|
+
# {XTwitterScraper::Models::X::TweetGetQuotesParams} for more details.
|
|
151
|
+
#
|
|
152
|
+
# List quote tweets of a tweet
|
|
142
153
|
#
|
|
143
|
-
# @overload get_quotes(id, cursor: nil, include_replies: nil, since_time: nil, until_time: nil, request_options: {})
|
|
154
|
+
# @overload get_quotes(id, any_words: nil, cashtags: nil, conversation_id: nil, cursor: nil, exact_phrase: nil, exclude_words: nil, from_user: nil, hashtags: nil, include_replies: nil, in_reply_to_tweet_id: nil, language: nil, media_type: nil, mentioning: nil, min_faves: nil, min_quotes: nil, min_replies: nil, min_retweets: nil, page_size: nil, quotes: nil, quotes_of_tweet_id: nil, replies: nil, retweets: nil, retweets_of_tweet_id: nil, since_date: nil, since_time: nil, to_user: nil, until_date: nil, until_time: nil, url: nil, verified_only: nil, request_options: {})
|
|
144
155
|
#
|
|
145
|
-
# @param id [String]
|
|
156
|
+
# @param id [String] Numeric tweet ID to get quotes, 15-20 digits
|
|
157
|
+
#
|
|
158
|
+
# @param any_words [String] Words or quoted phrases where any one can match. Separate with spaces, commas, o
|
|
159
|
+
#
|
|
160
|
+
# @param cashtags [String] Cashtags separated by spaces, commas, or lines.
|
|
161
|
+
#
|
|
162
|
+
# @param conversation_id [String] Conversation ID filter.
|
|
146
163
|
#
|
|
147
164
|
# @param cursor [String] Pagination cursor for quote tweets
|
|
148
165
|
#
|
|
166
|
+
# @param exact_phrase [String] Exact phrase to match.
|
|
167
|
+
#
|
|
168
|
+
# @param exclude_words [String] Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
169
|
+
#
|
|
170
|
+
# @param from_user [String] Filter by author username.
|
|
171
|
+
#
|
|
172
|
+
# @param hashtags [String] Hashtags separated by spaces, commas, or lines.
|
|
173
|
+
#
|
|
149
174
|
# @param include_replies [Boolean] Include reply quotes (default false)
|
|
150
175
|
#
|
|
176
|
+
# @param in_reply_to_tweet_id [String] Only replies to this tweet ID.
|
|
177
|
+
#
|
|
178
|
+
# @param language [String] Language code filter, e.g. en or tr.
|
|
179
|
+
#
|
|
180
|
+
# @param media_type [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::MediaType] Filter by media type.
|
|
181
|
+
#
|
|
182
|
+
# @param mentioning [String] Filter tweets mentioning a username.
|
|
183
|
+
#
|
|
184
|
+
# @param min_faves [Integer] Minimum likes threshold.
|
|
185
|
+
#
|
|
186
|
+
# @param min_quotes [Integer] Minimum quote count threshold.
|
|
187
|
+
#
|
|
188
|
+
# @param min_replies [Integer] Minimum replies threshold.
|
|
189
|
+
#
|
|
190
|
+
# @param min_retweets [Integer] Minimum retweets threshold.
|
|
191
|
+
#
|
|
192
|
+
# @param page_size [Integer] Maximum items requested from this page (1-100, default 20). The response can con
|
|
193
|
+
#
|
|
194
|
+
# @param quotes [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::Quotes] Quote mode.
|
|
195
|
+
#
|
|
196
|
+
# @param quotes_of_tweet_id [String] Only quotes of this tweet ID.
|
|
197
|
+
#
|
|
198
|
+
# @param replies [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::Replies] Reply mode.
|
|
199
|
+
#
|
|
200
|
+
# @param retweets [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::Retweets] Retweet mode.
|
|
201
|
+
#
|
|
202
|
+
# @param retweets_of_tweet_id [String] Only retweets of this tweet ID.
|
|
203
|
+
#
|
|
204
|
+
# @param since_date [Date] Start date in YYYY-MM-DD format.
|
|
205
|
+
#
|
|
151
206
|
# @param since_time [String] Unix timestamp - return quotes posted after this time
|
|
152
207
|
#
|
|
208
|
+
# @param to_user [String] Filter replies sent to a username.
|
|
209
|
+
#
|
|
210
|
+
# @param until_date [Date] End date in YYYY-MM-DD format.
|
|
211
|
+
#
|
|
153
212
|
# @param until_time [String] Unix timestamp - return quotes posted before this time
|
|
154
213
|
#
|
|
214
|
+
# @param url [String] URL substring or domain filter.
|
|
215
|
+
#
|
|
216
|
+
# @param verified_only [Boolean] Only return tweets from verified authors.
|
|
217
|
+
#
|
|
155
218
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
156
219
|
#
|
|
157
220
|
# @return [XTwitterScraper::Models::PaginatedTweets]
|
|
@@ -164,27 +227,100 @@ module XTwitterScraper
|
|
|
164
227
|
method: :get,
|
|
165
228
|
path: ["x/tweets/%1$s/quotes", id],
|
|
166
229
|
query: query.transform_keys(
|
|
230
|
+
any_words: "anyWords",
|
|
231
|
+
conversation_id: "conversationId",
|
|
232
|
+
exact_phrase: "exactPhrase",
|
|
233
|
+
exclude_words: "excludeWords",
|
|
234
|
+
from_user: "fromUser",
|
|
167
235
|
include_replies: "includeReplies",
|
|
236
|
+
in_reply_to_tweet_id: "inReplyToTweetId",
|
|
237
|
+
media_type: "mediaType",
|
|
238
|
+
min_faves: "minFaves",
|
|
239
|
+
min_quotes: "minQuotes",
|
|
240
|
+
min_replies: "minReplies",
|
|
241
|
+
min_retweets: "minRetweets",
|
|
242
|
+
page_size: "pageSize",
|
|
243
|
+
quotes_of_tweet_id: "quotesOfTweetId",
|
|
244
|
+
retweets_of_tweet_id: "retweetsOfTweetId",
|
|
245
|
+
since_date: "sinceDate",
|
|
168
246
|
since_time: "sinceTime",
|
|
169
|
-
|
|
247
|
+
to_user: "toUser",
|
|
248
|
+
until_date: "untilDate",
|
|
249
|
+
until_time: "untilTime",
|
|
250
|
+
verified_only: "verifiedOnly"
|
|
170
251
|
),
|
|
171
252
|
model: XTwitterScraper::PaginatedTweets,
|
|
172
253
|
options: options
|
|
173
254
|
)
|
|
174
255
|
end
|
|
175
256
|
|
|
176
|
-
#
|
|
257
|
+
# Some parameter documentations has been truncated, see
|
|
258
|
+
# {XTwitterScraper::Models::X::TweetGetRepliesParams} for more details.
|
|
177
259
|
#
|
|
178
|
-
#
|
|
260
|
+
# List replies to a tweet
|
|
261
|
+
#
|
|
262
|
+
# @overload get_replies(id, any_words: nil, cashtags: nil, conversation_id: nil, cursor: nil, exact_phrase: nil, exclude_words: nil, from_user: nil, hashtags: nil, in_reply_to_tweet_id: nil, language: nil, media_type: nil, mentioning: nil, min_faves: nil, min_quotes: nil, min_replies: nil, min_retweets: nil, page_size: nil, quotes: nil, quotes_of_tweet_id: nil, replies: nil, retweets: nil, retweets_of_tweet_id: nil, since_date: nil, since_time: nil, to_user: nil, until_date: nil, until_time: nil, url: nil, verified_only: nil, request_options: {})
|
|
179
263
|
#
|
|
180
264
|
# @param id [String] Tweet ID to get replies
|
|
181
265
|
#
|
|
266
|
+
# @param any_words [String] Words or quoted phrases where any one can match. Separate with spaces, commas, o
|
|
267
|
+
#
|
|
268
|
+
# @param cashtags [String] Cashtags separated by spaces, commas, or lines.
|
|
269
|
+
#
|
|
270
|
+
# @param conversation_id [String] Conversation ID filter.
|
|
271
|
+
#
|
|
182
272
|
# @param cursor [String] Pagination cursor for tweet replies
|
|
183
273
|
#
|
|
274
|
+
# @param exact_phrase [String] Exact phrase to match.
|
|
275
|
+
#
|
|
276
|
+
# @param exclude_words [String] Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
277
|
+
#
|
|
278
|
+
# @param from_user [String] Filter by author username.
|
|
279
|
+
#
|
|
280
|
+
# @param hashtags [String] Hashtags separated by spaces, commas, or lines.
|
|
281
|
+
#
|
|
282
|
+
# @param in_reply_to_tweet_id [String] Only replies to this tweet ID.
|
|
283
|
+
#
|
|
284
|
+
# @param language [String] Language code filter, e.g. en or tr.
|
|
285
|
+
#
|
|
286
|
+
# @param media_type [Symbol, XTwitterScraper::Models::X::TweetGetRepliesParams::MediaType] Filter by media type.
|
|
287
|
+
#
|
|
288
|
+
# @param mentioning [String] Filter tweets mentioning a username.
|
|
289
|
+
#
|
|
290
|
+
# @param min_faves [Integer] Minimum likes threshold.
|
|
291
|
+
#
|
|
292
|
+
# @param min_quotes [Integer] Minimum quote count threshold.
|
|
293
|
+
#
|
|
294
|
+
# @param min_replies [Integer] Minimum replies threshold.
|
|
295
|
+
#
|
|
296
|
+
# @param min_retweets [Integer] Minimum retweets threshold.
|
|
297
|
+
#
|
|
298
|
+
# @param page_size [Integer] Maximum items requested from this page (1-100, default 20). The response can con
|
|
299
|
+
#
|
|
300
|
+
# @param quotes [Symbol, XTwitterScraper::Models::X::TweetGetRepliesParams::Quotes] Quote mode.
|
|
301
|
+
#
|
|
302
|
+
# @param quotes_of_tweet_id [String] Only quotes of this tweet ID.
|
|
303
|
+
#
|
|
304
|
+
# @param replies [Symbol, XTwitterScraper::Models::X::TweetGetRepliesParams::Replies] Reply mode.
|
|
305
|
+
#
|
|
306
|
+
# @param retweets [Symbol, XTwitterScraper::Models::X::TweetGetRepliesParams::Retweets] Retweet mode.
|
|
307
|
+
#
|
|
308
|
+
# @param retweets_of_tweet_id [String] Only retweets of this tweet ID.
|
|
309
|
+
#
|
|
310
|
+
# @param since_date [Date] Start date in YYYY-MM-DD format.
|
|
311
|
+
#
|
|
184
312
|
# @param since_time [String] Unix timestamp - return replies posted after this time
|
|
185
313
|
#
|
|
314
|
+
# @param to_user [String] Filter replies sent to a username.
|
|
315
|
+
#
|
|
316
|
+
# @param until_date [Date] End date in YYYY-MM-DD format.
|
|
317
|
+
#
|
|
186
318
|
# @param until_time [String] Unix timestamp - return replies posted before this time
|
|
187
319
|
#
|
|
320
|
+
# @param url [String] URL substring or domain filter.
|
|
321
|
+
#
|
|
322
|
+
# @param verified_only [Boolean] Only return tweets from verified authors.
|
|
323
|
+
#
|
|
188
324
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
189
325
|
#
|
|
190
326
|
# @return [XTwitterScraper::Models::PaginatedTweets]
|
|
@@ -196,20 +332,46 @@ module XTwitterScraper
|
|
|
196
332
|
@client.request(
|
|
197
333
|
method: :get,
|
|
198
334
|
path: ["x/tweets/%1$s/replies", id],
|
|
199
|
-
query: query.transform_keys(
|
|
335
|
+
query: query.transform_keys(
|
|
336
|
+
any_words: "anyWords",
|
|
337
|
+
conversation_id: "conversationId",
|
|
338
|
+
exact_phrase: "exactPhrase",
|
|
339
|
+
exclude_words: "excludeWords",
|
|
340
|
+
from_user: "fromUser",
|
|
341
|
+
in_reply_to_tweet_id: "inReplyToTweetId",
|
|
342
|
+
media_type: "mediaType",
|
|
343
|
+
min_faves: "minFaves",
|
|
344
|
+
min_quotes: "minQuotes",
|
|
345
|
+
min_replies: "minReplies",
|
|
346
|
+
min_retweets: "minRetweets",
|
|
347
|
+
page_size: "pageSize",
|
|
348
|
+
quotes_of_tweet_id: "quotesOfTweetId",
|
|
349
|
+
retweets_of_tweet_id: "retweetsOfTweetId",
|
|
350
|
+
since_date: "sinceDate",
|
|
351
|
+
since_time: "sinceTime",
|
|
352
|
+
to_user: "toUser",
|
|
353
|
+
until_date: "untilDate",
|
|
354
|
+
until_time: "untilTime",
|
|
355
|
+
verified_only: "verifiedOnly"
|
|
356
|
+
),
|
|
200
357
|
model: XTwitterScraper::PaginatedTweets,
|
|
201
358
|
options: options
|
|
202
359
|
)
|
|
203
360
|
end
|
|
204
361
|
|
|
205
|
-
#
|
|
362
|
+
# Some parameter documentations has been truncated, see
|
|
363
|
+
# {XTwitterScraper::Models::X::TweetGetRetweetersParams} for more details.
|
|
364
|
+
#
|
|
365
|
+
# List users who retweeted a tweet
|
|
206
366
|
#
|
|
207
|
-
# @overload get_retweeters(id, cursor: nil, request_options: {})
|
|
367
|
+
# @overload get_retweeters(id, cursor: nil, page_size: nil, request_options: {})
|
|
208
368
|
#
|
|
209
369
|
# @param id [String] Tweet ID to get retweeters
|
|
210
370
|
#
|
|
211
371
|
# @param cursor [String] Pagination cursor for retweeters
|
|
212
372
|
#
|
|
373
|
+
# @param page_size [Integer] Maximum user profiles requested from this page (20-200, default 200). The respon
|
|
374
|
+
#
|
|
213
375
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
214
376
|
#
|
|
215
377
|
# @return [XTwitterScraper::Models::PaginatedUsers]
|
|
@@ -221,20 +383,25 @@ module XTwitterScraper
|
|
|
221
383
|
@client.request(
|
|
222
384
|
method: :get,
|
|
223
385
|
path: ["x/tweets/%1$s/retweeters", id],
|
|
224
|
-
query: query,
|
|
386
|
+
query: query.transform_keys(page_size: "pageSize"),
|
|
225
387
|
model: XTwitterScraper::PaginatedUsers,
|
|
226
388
|
options: options
|
|
227
389
|
)
|
|
228
390
|
end
|
|
229
391
|
|
|
230
|
-
#
|
|
392
|
+
# Some parameter documentations has been truncated, see
|
|
393
|
+
# {XTwitterScraper::Models::X::TweetGetThreadParams} for more details.
|
|
394
|
+
#
|
|
395
|
+
# Get full conversation thread for a tweet
|
|
231
396
|
#
|
|
232
|
-
# @overload get_thread(id, cursor: nil, request_options: {})
|
|
397
|
+
# @overload get_thread(id, cursor: nil, page_size: nil, request_options: {})
|
|
233
398
|
#
|
|
234
399
|
# @param id [String] Tweet ID to get thread context
|
|
235
400
|
#
|
|
236
401
|
# @param cursor [String] Pagination cursor for thread tweets
|
|
237
402
|
#
|
|
403
|
+
# @param page_size [Integer] Maximum items requested from this page (1-100, default 20). The response can con
|
|
404
|
+
#
|
|
238
405
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
239
406
|
#
|
|
240
407
|
# @return [XTwitterScraper::Models::PaginatedTweets]
|
|
@@ -246,27 +413,92 @@ module XTwitterScraper
|
|
|
246
413
|
@client.request(
|
|
247
414
|
method: :get,
|
|
248
415
|
path: ["x/tweets/%1$s/thread", id],
|
|
249
|
-
query: query,
|
|
416
|
+
query: query.transform_keys(page_size: "pageSize"),
|
|
250
417
|
model: XTwitterScraper::PaginatedTweets,
|
|
251
418
|
options: options
|
|
252
419
|
)
|
|
253
420
|
end
|
|
254
421
|
|
|
255
|
-
#
|
|
422
|
+
# Some parameter documentations has been truncated, see
|
|
423
|
+
# {XTwitterScraper::Models::X::TweetSearchParams} for more details.
|
|
424
|
+
#
|
|
425
|
+
# Search tweets by query, Tweet ID, X status URL, or account date window
|
|
256
426
|
#
|
|
257
|
-
# @overload search(q:, cursor: nil, limit: nil, query_type: nil, since_time: nil, until_time: nil, request_options: {})
|
|
427
|
+
# @overload search(q:, advanced_query: nil, any_words: nil, bounding_box: nil, cashtags: nil, conversation_id: nil, cursor: nil, exact_phrase: nil, exclude_words: nil, from_user: nil, hashtags: nil, in_reply_to_tweet_id: nil, language: nil, limit: nil, list_id: nil, media_type: nil, mentioning: nil, min_faves: nil, min_quotes: nil, min_replies: nil, min_retweets: nil, place: nil, place_country: nil, point_radius: nil, query_type: nil, quotes: nil, quotes_of_tweet_id: nil, replies: nil, retweets: nil, retweets_of_tweet_id: nil, since_date: nil, since_time: nil, to_user: nil, until_date: nil, until_time: nil, url: nil, verified_only: nil, request_options: {})
|
|
258
428
|
#
|
|
259
429
|
# @param q [String] Search query (keywords,
|
|
260
430
|
#
|
|
431
|
+
# @param advanced_query [String] Raw advanced search query appended as-is.
|
|
432
|
+
#
|
|
433
|
+
# @param any_words [String] Words or quoted phrases where any one can match. Separate with spaces, commas, o
|
|
434
|
+
#
|
|
435
|
+
# @param bounding_box [String] Geo bounding box, e.g. -74.1 40.6 -73.9 40.8.
|
|
436
|
+
#
|
|
437
|
+
# @param cashtags [String] Cashtags separated by spaces, commas, or lines.
|
|
438
|
+
#
|
|
439
|
+
# @param conversation_id [String] Conversation ID filter.
|
|
440
|
+
#
|
|
261
441
|
# @param cursor [String] Pagination cursor from previous response
|
|
262
442
|
#
|
|
443
|
+
# @param exact_phrase [String] Exact phrase to match.
|
|
444
|
+
#
|
|
445
|
+
# @param exclude_words [String] Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
446
|
+
#
|
|
447
|
+
# @param from_user [String] Filter by author username.
|
|
448
|
+
#
|
|
449
|
+
# @param hashtags [String] Hashtags separated by spaces, commas, or lines.
|
|
450
|
+
#
|
|
451
|
+
# @param in_reply_to_tweet_id [String] Only replies to this tweet ID.
|
|
452
|
+
#
|
|
453
|
+
# @param language [String] Language code filter, e.g. en or tr.
|
|
454
|
+
#
|
|
263
455
|
# @param limit [Integer] Max tweets to return (server paginates internally). Omit for single page (~20).
|
|
264
456
|
#
|
|
265
|
-
# @param
|
|
457
|
+
# @param list_id [String] Search within a list ID.
|
|
458
|
+
#
|
|
459
|
+
# @param media_type [Symbol, XTwitterScraper::Models::X::TweetSearchParams::MediaType] Filter by media type.
|
|
460
|
+
#
|
|
461
|
+
# @param mentioning [String] Filter tweets mentioning a username.
|
|
462
|
+
#
|
|
463
|
+
# @param min_faves [Integer] Minimum likes threshold.
|
|
464
|
+
#
|
|
465
|
+
# @param min_quotes [Integer] Minimum quote count threshold.
|
|
466
|
+
#
|
|
467
|
+
# @param min_replies [Integer] Minimum replies threshold.
|
|
468
|
+
#
|
|
469
|
+
# @param min_retweets [Integer] Minimum retweets threshold.
|
|
470
|
+
#
|
|
471
|
+
# @param place [String] Search within a place ID.
|
|
472
|
+
#
|
|
473
|
+
# @param place_country [String] Search within a country code.
|
|
474
|
+
#
|
|
475
|
+
# @param point_radius [String] Geo point radius, e.g. -73.99 40.73 25mi.
|
|
476
|
+
#
|
|
477
|
+
# @param query_type [Symbol, XTwitterScraper::Models::X::TweetSearchParams::QueryType] Sort order - Latest (chronological) or Top (engagement-ranked)
|
|
478
|
+
#
|
|
479
|
+
# @param quotes [Symbol, XTwitterScraper::Models::X::TweetSearchParams::Quotes] Quote mode.
|
|
480
|
+
#
|
|
481
|
+
# @param quotes_of_tweet_id [String] Only quotes of this tweet ID.
|
|
482
|
+
#
|
|
483
|
+
# @param replies [Symbol, XTwitterScraper::Models::X::TweetSearchParams::Replies] Reply mode.
|
|
484
|
+
#
|
|
485
|
+
# @param retweets [Symbol, XTwitterScraper::Models::X::TweetSearchParams::Retweets] Retweet mode.
|
|
486
|
+
#
|
|
487
|
+
# @param retweets_of_tweet_id [String] Only retweets of this tweet ID.
|
|
488
|
+
#
|
|
489
|
+
# @param since_date [Date] Start date in YYYY-MM-DD format.
|
|
490
|
+
#
|
|
491
|
+
# @param since_time [String] ISO 8601 timestamp - only return tweets after this time
|
|
492
|
+
#
|
|
493
|
+
# @param to_user [String] Filter replies sent to a username.
|
|
494
|
+
#
|
|
495
|
+
# @param until_date [Date] End date in YYYY-MM-DD format.
|
|
496
|
+
#
|
|
497
|
+
# @param until_time [String] ISO 8601 timestamp - only return tweets before this time
|
|
266
498
|
#
|
|
267
|
-
# @param
|
|
499
|
+
# @param url [String] URL substring or domain filter.
|
|
268
500
|
#
|
|
269
|
-
# @param
|
|
501
|
+
# @param verified_only [Boolean] Only return tweets from verified authors.
|
|
270
502
|
#
|
|
271
503
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
272
504
|
#
|
|
@@ -280,9 +512,31 @@ module XTwitterScraper
|
|
|
280
512
|
method: :get,
|
|
281
513
|
path: "x/tweets/search",
|
|
282
514
|
query: query.transform_keys(
|
|
515
|
+
advanced_query: "advancedQuery",
|
|
516
|
+
any_words: "anyWords",
|
|
517
|
+
bounding_box: "boundingBox",
|
|
518
|
+
conversation_id: "conversationId",
|
|
519
|
+
exact_phrase: "exactPhrase",
|
|
520
|
+
exclude_words: "excludeWords",
|
|
521
|
+
from_user: "fromUser",
|
|
522
|
+
in_reply_to_tweet_id: "inReplyToTweetId",
|
|
523
|
+
list_id: "listId",
|
|
524
|
+
media_type: "mediaType",
|
|
525
|
+
min_faves: "minFaves",
|
|
526
|
+
min_quotes: "minQuotes",
|
|
527
|
+
min_replies: "minReplies",
|
|
528
|
+
min_retweets: "minRetweets",
|
|
529
|
+
place_country: "placeCountry",
|
|
530
|
+
point_radius: "pointRadius",
|
|
283
531
|
query_type: "queryType",
|
|
532
|
+
quotes_of_tweet_id: "quotesOfTweetId",
|
|
533
|
+
retweets_of_tweet_id: "retweetsOfTweetId",
|
|
534
|
+
since_date: "sinceDate",
|
|
284
535
|
since_time: "sinceTime",
|
|
285
|
-
|
|
536
|
+
to_user: "toUser",
|
|
537
|
+
until_date: "untilDate",
|
|
538
|
+
until_time: "untilTime",
|
|
539
|
+
verified_only: "verifiedOnly"
|
|
286
540
|
),
|
|
287
541
|
model: XTwitterScraper::PaginatedTweets,
|
|
288
542
|
options: options
|