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
|
@@ -14,11 +14,6 @@ module XTwitterScraper
|
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :account, String
|
|
16
16
|
|
|
17
|
-
# @!attribute text
|
|
18
|
-
#
|
|
19
|
-
# @return [String]
|
|
20
|
-
required :text, String
|
|
21
|
-
|
|
22
17
|
# @!attribute attachment_url
|
|
23
18
|
#
|
|
24
19
|
# @return [String, nil]
|
|
@@ -34,20 +29,30 @@ module XTwitterScraper
|
|
|
34
29
|
# @return [Boolean, nil]
|
|
35
30
|
optional :is_note_tweet, XTwitterScraper::Internal::Type::Boolean
|
|
36
31
|
|
|
37
|
-
# @!attribute
|
|
32
|
+
# @!attribute media
|
|
33
|
+
# Array of public media URLs to attach. Supports up to 4 images or exactly 1 MP4
|
|
34
|
+
# video up to 100 MB. Each URL must be publicly reachable. Attached media adds 2
|
|
35
|
+
# credits per started MB across all files.
|
|
38
36
|
#
|
|
39
37
|
# @return [Array<String>, nil]
|
|
40
|
-
optional :
|
|
38
|
+
optional :media, XTwitterScraper::Internal::Type::ArrayOf[String]
|
|
41
39
|
|
|
42
40
|
# @!attribute reply_to_tweet_id
|
|
43
41
|
#
|
|
44
42
|
# @return [String, nil]
|
|
45
43
|
optional :reply_to_tweet_id, String
|
|
46
44
|
|
|
47
|
-
# @!
|
|
48
|
-
#
|
|
45
|
+
# @!attribute text
|
|
46
|
+
# Tweet text (optional when media is provided)
|
|
49
47
|
#
|
|
50
|
-
# @
|
|
48
|
+
# @return [String, nil]
|
|
49
|
+
optional :text, String
|
|
50
|
+
|
|
51
|
+
# @!method initialize(account:, attachment_url: nil, community_id: nil, is_note_tweet: nil, media: nil, reply_to_tweet_id: nil, text: nil, request_options: {})
|
|
52
|
+
# Some parameter documentations has been truncated, see
|
|
53
|
+
# {XTwitterScraper::Models::X::TweetCreateParams} for more details.
|
|
54
|
+
#
|
|
55
|
+
# @param account [String] X account (@username or account ID)
|
|
51
56
|
#
|
|
52
57
|
# @param attachment_url [String]
|
|
53
58
|
#
|
|
@@ -55,10 +60,12 @@ module XTwitterScraper
|
|
|
55
60
|
#
|
|
56
61
|
# @param is_note_tweet [Boolean]
|
|
57
62
|
#
|
|
58
|
-
# @param
|
|
63
|
+
# @param media [Array<String>] Array of public media URLs to attach. Supports up to 4 images or exactly 1 MP4 v
|
|
59
64
|
#
|
|
60
65
|
# @param reply_to_tweet_id [String]
|
|
61
66
|
#
|
|
67
|
+
# @param text [String] Tweet text (optional when media is provided)
|
|
68
|
+
#
|
|
62
69
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
63
70
|
end
|
|
64
71
|
end
|
|
@@ -5,6 +5,18 @@ module XTwitterScraper
|
|
|
5
5
|
module X
|
|
6
6
|
# @see XTwitterScraper::Resources::X::Tweets#create
|
|
7
7
|
class TweetCreateResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute charged
|
|
9
|
+
#
|
|
10
|
+
# @return [Boolean]
|
|
11
|
+
required :charged, XTwitterScraper::Internal::Type::Boolean
|
|
12
|
+
|
|
13
|
+
# @!attribute charged_credits
|
|
14
|
+
# Credits charged for this tweet. Text-only tweets and replies cost 30 credits;
|
|
15
|
+
# attached media adds 2 credits per started MB.
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
required :charged_credits, String, api_name: :chargedCredits
|
|
19
|
+
|
|
8
20
|
# @!attribute success
|
|
9
21
|
#
|
|
10
22
|
# @return [Boolean, true]
|
|
@@ -15,8 +27,23 @@ module XTwitterScraper
|
|
|
15
27
|
# @return [String]
|
|
16
28
|
required :tweet_id, String, api_name: :tweetId
|
|
17
29
|
|
|
18
|
-
# @!
|
|
30
|
+
# @!attribute write_action_id
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :write_action_id, String, api_name: :writeActionId
|
|
34
|
+
|
|
35
|
+
# @!method initialize(charged:, charged_credits:, tweet_id:, write_action_id: nil, success: true)
|
|
36
|
+
# Some parameter documentations has been truncated, see
|
|
37
|
+
# {XTwitterScraper::Models::X::TweetCreateResponse} for more details.
|
|
38
|
+
#
|
|
39
|
+
# @param charged [Boolean]
|
|
40
|
+
#
|
|
41
|
+
# @param charged_credits [String] Credits charged for this tweet. Text-only tweets and replies cost 30 credits; at
|
|
42
|
+
#
|
|
19
43
|
# @param tweet_id [String]
|
|
44
|
+
#
|
|
45
|
+
# @param write_action_id [String]
|
|
46
|
+
#
|
|
20
47
|
# @param success [Boolean, true]
|
|
21
48
|
end
|
|
22
49
|
end
|
|
@@ -44,6 +44,20 @@ module XTwitterScraper
|
|
|
44
44
|
# @return [Integer]
|
|
45
45
|
required :view_count, Integer, api_name: :viewCount
|
|
46
46
|
|
|
47
|
+
# @!attribute author
|
|
48
|
+
# Tweet author profile. The lookup route always includes follower count and
|
|
49
|
+
# verification state. Other profile fields appear when available.
|
|
50
|
+
#
|
|
51
|
+
# @return [XTwitterScraper::Models::X::TweetAuthor, nil]
|
|
52
|
+
optional :author, -> { XTwitterScraper::X::TweetAuthor }
|
|
53
|
+
|
|
54
|
+
# @!attribute content_disclosure
|
|
55
|
+
# Content disclosure metadata shown by X when a tweet is labeled as paid
|
|
56
|
+
# partnership content or AI-generated media.
|
|
57
|
+
#
|
|
58
|
+
# @return [XTwitterScraper::Models::ContentDisclosure, nil]
|
|
59
|
+
optional :content_disclosure, -> { XTwitterScraper::ContentDisclosure }, api_name: :contentDisclosure
|
|
60
|
+
|
|
47
61
|
# @!attribute conversation_id
|
|
48
62
|
# ID of the root tweet in the conversation thread
|
|
49
63
|
#
|
|
@@ -55,12 +69,44 @@ module XTwitterScraper
|
|
|
55
69
|
# @return [String, nil]
|
|
56
70
|
optional :created_at, String, api_name: :createdAt
|
|
57
71
|
|
|
72
|
+
# @!attribute display_text_range
|
|
73
|
+
# Start and end offsets for rendered tweet text
|
|
74
|
+
#
|
|
75
|
+
# @return [Array<Integer>, nil]
|
|
76
|
+
optional :display_text_range,
|
|
77
|
+
XTwitterScraper::Internal::Type::ArrayOf[Integer],
|
|
78
|
+
api_name: :displayTextRange
|
|
79
|
+
|
|
58
80
|
# @!attribute entities
|
|
59
81
|
# Parsed entities from the tweet text (URLs, mentions, hashtags, media)
|
|
60
82
|
#
|
|
61
83
|
# @return [Hash{Symbol=>Object}, nil]
|
|
62
84
|
optional :entities, XTwitterScraper::Internal::Type::HashOf[XTwitterScraper::Internal::Type::Unknown]
|
|
63
85
|
|
|
86
|
+
# @!attribute in_reply_to_id
|
|
87
|
+
# Tweet ID being replied to
|
|
88
|
+
#
|
|
89
|
+
# @return [String, nil]
|
|
90
|
+
optional :in_reply_to_id, String, api_name: :inReplyToId
|
|
91
|
+
|
|
92
|
+
# @!attribute in_reply_to_user_id
|
|
93
|
+
# User ID being replied to
|
|
94
|
+
#
|
|
95
|
+
# @return [String, nil]
|
|
96
|
+
optional :in_reply_to_user_id, String, api_name: :inReplyToUserId
|
|
97
|
+
|
|
98
|
+
# @!attribute in_reply_to_username
|
|
99
|
+
# Username being replied to
|
|
100
|
+
#
|
|
101
|
+
# @return [String, nil]
|
|
102
|
+
optional :in_reply_to_username, String, api_name: :inReplyToUsername
|
|
103
|
+
|
|
104
|
+
# @!attribute is_limited_reply
|
|
105
|
+
# Whether replies are limited for this tweet
|
|
106
|
+
#
|
|
107
|
+
# @return [Boolean, nil]
|
|
108
|
+
optional :is_limited_reply, XTwitterScraper::Internal::Type::Boolean, api_name: :isLimitedReply
|
|
109
|
+
|
|
64
110
|
# @!attribute is_note_tweet
|
|
65
111
|
# Whether this is a Note Tweet (long-form post, up to 25,000 characters)
|
|
66
112
|
#
|
|
@@ -79,17 +125,33 @@ module XTwitterScraper
|
|
|
79
125
|
# @return [Boolean, nil]
|
|
80
126
|
optional :is_reply, XTwitterScraper::Internal::Type::Boolean, api_name: :isReply
|
|
81
127
|
|
|
128
|
+
# @!attribute lang
|
|
129
|
+
# Tweet language code
|
|
130
|
+
#
|
|
131
|
+
# @return [String, nil]
|
|
132
|
+
optional :lang, String
|
|
133
|
+
|
|
82
134
|
# @!attribute media
|
|
83
135
|
# Attached media items, omitted when the tweet has no media
|
|
84
136
|
#
|
|
85
|
-
# @return [Array<XTwitterScraper::Models::
|
|
86
|
-
optional :media, -> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::
|
|
137
|
+
# @return [Array<XTwitterScraper::Models::TweetMedia>, nil]
|
|
138
|
+
optional :media, -> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::TweetMedia] }
|
|
87
139
|
|
|
88
140
|
# @!attribute quoted_tweet
|
|
89
|
-
#
|
|
141
|
+
# Quoted or retweeted tweet context. Every object includes id, text, and
|
|
142
|
+
# engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
143
|
+
# media, and conversation fields appear when available.
|
|
90
144
|
#
|
|
91
|
-
# @return [
|
|
92
|
-
optional :quoted_tweet, XTwitterScraper::
|
|
145
|
+
# @return [XTwitterScraper::Models::EmbeddedTweet, nil]
|
|
146
|
+
optional :quoted_tweet, -> { XTwitterScraper::EmbeddedTweet }
|
|
147
|
+
|
|
148
|
+
# @!attribute retweeted_tweet
|
|
149
|
+
# Quoted or retweeted tweet context. Every object includes id, text, and
|
|
150
|
+
# engagement metrics. A zero metric can mean X did not report the count. Author,
|
|
151
|
+
# media, and conversation fields appear when available.
|
|
152
|
+
#
|
|
153
|
+
# @return [XTwitterScraper::Models::EmbeddedTweet, nil]
|
|
154
|
+
optional :retweeted_tweet, -> { XTwitterScraper::EmbeddedTweet }
|
|
93
155
|
|
|
94
156
|
# @!attribute source
|
|
95
157
|
# Client application used to post this tweet
|
|
@@ -97,8 +159,24 @@ module XTwitterScraper
|
|
|
97
159
|
# @return [String, nil]
|
|
98
160
|
optional :source, String
|
|
99
161
|
|
|
100
|
-
# @!
|
|
101
|
-
#
|
|
162
|
+
# @!attribute type
|
|
163
|
+
# Tweet result type
|
|
164
|
+
#
|
|
165
|
+
# @return [String, nil]
|
|
166
|
+
optional :type, String
|
|
167
|
+
|
|
168
|
+
# @!attribute url
|
|
169
|
+
# Tweet permalink URL
|
|
170
|
+
#
|
|
171
|
+
# @return [String, nil]
|
|
172
|
+
optional :url, String
|
|
173
|
+
|
|
174
|
+
# @!method initialize(id:, bookmark_count:, like_count:, quote_count:, reply_count:, retweet_count:, text:, view_count:, author: nil, content_disclosure: nil, conversation_id: nil, created_at: nil, display_text_range: nil, entities: nil, in_reply_to_id: nil, in_reply_to_user_id: nil, in_reply_to_username: nil, is_limited_reply: nil, is_note_tweet: nil, is_quote_status: nil, is_reply: nil, lang: nil, media: nil, quoted_tweet: nil, retweeted_tweet: nil, source: nil, type: nil, url: nil)
|
|
175
|
+
# Some parameter documentations has been truncated, see
|
|
176
|
+
# {XTwitterScraper::Models::X::TweetDetail} for more details.
|
|
177
|
+
#
|
|
178
|
+
# Full tweet with text, engagement metrics, media, and metadata. A zero metric can
|
|
179
|
+
# mean X did not report the count.
|
|
102
180
|
#
|
|
103
181
|
# @param id [String]
|
|
104
182
|
#
|
|
@@ -116,57 +194,45 @@ module XTwitterScraper
|
|
|
116
194
|
#
|
|
117
195
|
# @param view_count [Integer]
|
|
118
196
|
#
|
|
197
|
+
# @param author [XTwitterScraper::Models::X::TweetAuthor] Tweet author profile. The lookup route always includes follower count and verifi
|
|
198
|
+
#
|
|
199
|
+
# @param content_disclosure [XTwitterScraper::Models::ContentDisclosure] Content disclosure metadata shown by X when a tweet is labeled as paid partnersh
|
|
200
|
+
#
|
|
119
201
|
# @param conversation_id [String] ID of the root tweet in the conversation thread
|
|
120
202
|
#
|
|
121
203
|
# @param created_at [String]
|
|
122
204
|
#
|
|
205
|
+
# @param display_text_range [Array<Integer>] Start and end offsets for rendered tweet text
|
|
206
|
+
#
|
|
123
207
|
# @param entities [Hash{Symbol=>Object}] Parsed entities from the tweet text (URLs, mentions, hashtags, media)
|
|
124
208
|
#
|
|
209
|
+
# @param in_reply_to_id [String] Tweet ID being replied to
|
|
210
|
+
#
|
|
211
|
+
# @param in_reply_to_user_id [String] User ID being replied to
|
|
212
|
+
#
|
|
213
|
+
# @param in_reply_to_username [String] Username being replied to
|
|
214
|
+
#
|
|
215
|
+
# @param is_limited_reply [Boolean] Whether replies are limited for this tweet
|
|
216
|
+
#
|
|
125
217
|
# @param is_note_tweet [Boolean] Whether this is a Note Tweet (long-form post, up to 25,000 characters)
|
|
126
218
|
#
|
|
127
219
|
# @param is_quote_status [Boolean] Whether this tweet quotes another tweet
|
|
128
220
|
#
|
|
129
221
|
# @param is_reply [Boolean] Whether this tweet is a reply to another tweet
|
|
130
222
|
#
|
|
131
|
-
# @param
|
|
223
|
+
# @param lang [String] Tweet language code
|
|
132
224
|
#
|
|
133
|
-
# @param
|
|
225
|
+
# @param media [Array<XTwitterScraper::Models::TweetMedia>] Attached media items, omitted when the tweet has no media
|
|
226
|
+
#
|
|
227
|
+
# @param quoted_tweet [XTwitterScraper::Models::EmbeddedTweet] Quoted or retweeted tweet context. Every object includes id, text, and engagemen
|
|
228
|
+
#
|
|
229
|
+
# @param retweeted_tweet [XTwitterScraper::Models::EmbeddedTweet] Quoted or retweeted tweet context. Every object includes id, text, and engagemen
|
|
134
230
|
#
|
|
135
231
|
# @param source [String] Client application used to post this tweet
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
# @return [String, nil]
|
|
141
|
-
optional :media_url, String, api_name: :mediaUrl
|
|
142
|
-
|
|
143
|
-
# @!attribute type
|
|
144
|
-
#
|
|
145
|
-
# @return [Symbol, XTwitterScraper::Models::X::TweetDetail::Media::Type, nil]
|
|
146
|
-
optional :type, enum: -> { XTwitterScraper::X::TweetDetail::Media::Type }
|
|
147
|
-
|
|
148
|
-
# @!attribute url
|
|
149
|
-
#
|
|
150
|
-
# @return [String, nil]
|
|
151
|
-
optional :url, String
|
|
152
|
-
|
|
153
|
-
# @!method initialize(media_url: nil, type: nil, url: nil)
|
|
154
|
-
# @param media_url [String]
|
|
155
|
-
# @param type [Symbol, XTwitterScraper::Models::X::TweetDetail::Media::Type]
|
|
156
|
-
# @param url [String]
|
|
157
|
-
|
|
158
|
-
# @see XTwitterScraper::Models::X::TweetDetail::Media#type
|
|
159
|
-
module Type
|
|
160
|
-
extend XTwitterScraper::Internal::Type::Enum
|
|
161
|
-
|
|
162
|
-
PHOTO = :photo
|
|
163
|
-
VIDEO = :video
|
|
164
|
-
ANIMATED_GIF = :animated_gif
|
|
165
|
-
|
|
166
|
-
# @!method self.values
|
|
167
|
-
# @return [Array<Symbol>]
|
|
168
|
-
end
|
|
169
|
-
end
|
|
232
|
+
#
|
|
233
|
+
# @param type [String] Tweet result type
|
|
234
|
+
#
|
|
235
|
+
# @param url [String] Tweet permalink URL
|
|
170
236
|
end
|
|
171
237
|
end
|
|
172
238
|
end
|
|
@@ -19,11 +19,25 @@ module XTwitterScraper
|
|
|
19
19
|
# @return [String, nil]
|
|
20
20
|
optional :cursor, String
|
|
21
21
|
|
|
22
|
-
# @!
|
|
22
|
+
# @!attribute page_size
|
|
23
|
+
# Maximum user profiles requested from this page (20-200, default 200). The
|
|
24
|
+
# response can contain fewer profiles because the source returned fewer or
|
|
25
|
+
# remaining credits cover fewer results. Keep requesting next_cursor while
|
|
26
|
+
# has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
27
|
+
#
|
|
28
|
+
# @return [Integer, nil]
|
|
29
|
+
optional :page_size, Integer
|
|
30
|
+
|
|
31
|
+
# @!method initialize(id:, cursor: nil, page_size: nil, request_options: {})
|
|
32
|
+
# Some parameter documentations has been truncated, see
|
|
33
|
+
# {XTwitterScraper::Models::X::TweetGetFavoritersParams} for more details.
|
|
34
|
+
#
|
|
23
35
|
# @param id [String]
|
|
24
36
|
#
|
|
25
37
|
# @param cursor [String] Pagination cursor for favoriters
|
|
26
38
|
#
|
|
39
|
+
# @param page_size [Integer] Maximum user profiles requested from this page (20-200, default 200). The respon
|
|
40
|
+
#
|
|
27
41
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
28
42
|
end
|
|
29
43
|
end
|
|
@@ -13,42 +13,309 @@ module XTwitterScraper
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :id, String
|
|
15
15
|
|
|
16
|
+
# @!attribute any_words
|
|
17
|
+
# Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
18
|
+
# or lines.
|
|
19
|
+
#
|
|
20
|
+
# @return [String, nil]
|
|
21
|
+
optional :any_words, String
|
|
22
|
+
|
|
23
|
+
# @!attribute cashtags
|
|
24
|
+
# Cashtags separated by spaces, commas, or lines.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :cashtags, String
|
|
28
|
+
|
|
29
|
+
# @!attribute conversation_id
|
|
30
|
+
# Conversation ID filter.
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :conversation_id, String
|
|
34
|
+
|
|
16
35
|
# @!attribute cursor
|
|
17
36
|
# Pagination cursor for quote tweets
|
|
18
37
|
#
|
|
19
38
|
# @return [String, nil]
|
|
20
39
|
optional :cursor, String
|
|
21
40
|
|
|
41
|
+
# @!attribute exact_phrase
|
|
42
|
+
# Exact phrase to match.
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :exact_phrase, String
|
|
46
|
+
|
|
47
|
+
# @!attribute exclude_words
|
|
48
|
+
# Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
49
|
+
#
|
|
50
|
+
# @return [String, nil]
|
|
51
|
+
optional :exclude_words, String
|
|
52
|
+
|
|
53
|
+
# @!attribute from_user
|
|
54
|
+
# Filter by author username.
|
|
55
|
+
#
|
|
56
|
+
# @return [String, nil]
|
|
57
|
+
optional :from_user, String
|
|
58
|
+
|
|
59
|
+
# @!attribute hashtags
|
|
60
|
+
# Hashtags separated by spaces, commas, or lines.
|
|
61
|
+
#
|
|
62
|
+
# @return [String, nil]
|
|
63
|
+
optional :hashtags, String
|
|
64
|
+
|
|
22
65
|
# @!attribute include_replies
|
|
23
66
|
# Include reply quotes (default false)
|
|
24
67
|
#
|
|
25
68
|
# @return [Boolean, nil]
|
|
26
69
|
optional :include_replies, XTwitterScraper::Internal::Type::Boolean
|
|
27
70
|
|
|
71
|
+
# @!attribute in_reply_to_tweet_id
|
|
72
|
+
# Only replies to this tweet ID.
|
|
73
|
+
#
|
|
74
|
+
# @return [String, nil]
|
|
75
|
+
optional :in_reply_to_tweet_id, String
|
|
76
|
+
|
|
77
|
+
# @!attribute language
|
|
78
|
+
# Language code filter, e.g. en or tr.
|
|
79
|
+
#
|
|
80
|
+
# @return [String, nil]
|
|
81
|
+
optional :language, String
|
|
82
|
+
|
|
83
|
+
# @!attribute media_type
|
|
84
|
+
# Filter by media type.
|
|
85
|
+
#
|
|
86
|
+
# @return [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::MediaType, nil]
|
|
87
|
+
optional :media_type, enum: -> { XTwitterScraper::X::TweetGetQuotesParams::MediaType }
|
|
88
|
+
|
|
89
|
+
# @!attribute mentioning
|
|
90
|
+
# Filter tweets mentioning a username.
|
|
91
|
+
#
|
|
92
|
+
# @return [String, nil]
|
|
93
|
+
optional :mentioning, String
|
|
94
|
+
|
|
95
|
+
# @!attribute min_faves
|
|
96
|
+
# Minimum likes threshold.
|
|
97
|
+
#
|
|
98
|
+
# @return [Integer, nil]
|
|
99
|
+
optional :min_faves, Integer
|
|
100
|
+
|
|
101
|
+
# @!attribute min_quotes
|
|
102
|
+
# Minimum quote count threshold.
|
|
103
|
+
#
|
|
104
|
+
# @return [Integer, nil]
|
|
105
|
+
optional :min_quotes, Integer
|
|
106
|
+
|
|
107
|
+
# @!attribute min_replies
|
|
108
|
+
# Minimum replies threshold.
|
|
109
|
+
#
|
|
110
|
+
# @return [Integer, nil]
|
|
111
|
+
optional :min_replies, Integer
|
|
112
|
+
|
|
113
|
+
# @!attribute min_retweets
|
|
114
|
+
# Minimum retweets threshold.
|
|
115
|
+
#
|
|
116
|
+
# @return [Integer, nil]
|
|
117
|
+
optional :min_retweets, Integer
|
|
118
|
+
|
|
119
|
+
# @!attribute page_size
|
|
120
|
+
# Maximum items requested from this page (1-100, default 20). The response can
|
|
121
|
+
# contain fewer items because the source returned fewer, filters removed items, or
|
|
122
|
+
# remaining credits cover fewer results. Keep requesting next_cursor while
|
|
123
|
+
# has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
124
|
+
# aliases remain accepted.
|
|
125
|
+
#
|
|
126
|
+
# @return [Integer, nil]
|
|
127
|
+
optional :page_size, Integer
|
|
128
|
+
|
|
129
|
+
# @!attribute quotes
|
|
130
|
+
# Quote mode.
|
|
131
|
+
#
|
|
132
|
+
# @return [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::Quotes, nil]
|
|
133
|
+
optional :quotes, enum: -> { XTwitterScraper::X::TweetGetQuotesParams::Quotes }
|
|
134
|
+
|
|
135
|
+
# @!attribute quotes_of_tweet_id
|
|
136
|
+
# Only quotes of this tweet ID.
|
|
137
|
+
#
|
|
138
|
+
# @return [String, nil]
|
|
139
|
+
optional :quotes_of_tweet_id, String
|
|
140
|
+
|
|
141
|
+
# @!attribute replies
|
|
142
|
+
# Reply mode.
|
|
143
|
+
#
|
|
144
|
+
# @return [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::Replies, nil]
|
|
145
|
+
optional :replies, enum: -> { XTwitterScraper::X::TweetGetQuotesParams::Replies }
|
|
146
|
+
|
|
147
|
+
# @!attribute retweets
|
|
148
|
+
# Retweet mode.
|
|
149
|
+
#
|
|
150
|
+
# @return [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::Retweets, nil]
|
|
151
|
+
optional :retweets, enum: -> { XTwitterScraper::X::TweetGetQuotesParams::Retweets }
|
|
152
|
+
|
|
153
|
+
# @!attribute retweets_of_tweet_id
|
|
154
|
+
# Only retweets of this tweet ID.
|
|
155
|
+
#
|
|
156
|
+
# @return [String, nil]
|
|
157
|
+
optional :retweets_of_tweet_id, String
|
|
158
|
+
|
|
159
|
+
# @!attribute since_date
|
|
160
|
+
# Start date in YYYY-MM-DD format.
|
|
161
|
+
#
|
|
162
|
+
# @return [Date, nil]
|
|
163
|
+
optional :since_date, Date
|
|
164
|
+
|
|
28
165
|
# @!attribute since_time
|
|
29
166
|
# Unix timestamp - return quotes posted after this time
|
|
30
167
|
#
|
|
31
168
|
# @return [String, nil]
|
|
32
169
|
optional :since_time, String
|
|
33
170
|
|
|
171
|
+
# @!attribute to_user
|
|
172
|
+
# Filter replies sent to a username.
|
|
173
|
+
#
|
|
174
|
+
# @return [String, nil]
|
|
175
|
+
optional :to_user, String
|
|
176
|
+
|
|
177
|
+
# @!attribute until_date
|
|
178
|
+
# End date in YYYY-MM-DD format.
|
|
179
|
+
#
|
|
180
|
+
# @return [Date, nil]
|
|
181
|
+
optional :until_date, Date
|
|
182
|
+
|
|
34
183
|
# @!attribute until_time
|
|
35
184
|
# Unix timestamp - return quotes posted before this time
|
|
36
185
|
#
|
|
37
186
|
# @return [String, nil]
|
|
38
187
|
optional :until_time, String
|
|
39
188
|
|
|
40
|
-
# @!
|
|
189
|
+
# @!attribute url
|
|
190
|
+
# URL substring or domain filter.
|
|
191
|
+
#
|
|
192
|
+
# @return [String, nil]
|
|
193
|
+
optional :url, String
|
|
194
|
+
|
|
195
|
+
# @!attribute verified_only
|
|
196
|
+
# Only return tweets from verified authors.
|
|
197
|
+
#
|
|
198
|
+
# @return [Boolean, nil]
|
|
199
|
+
optional :verified_only, XTwitterScraper::Internal::Type::Boolean
|
|
200
|
+
|
|
201
|
+
# @!method initialize(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: {})
|
|
202
|
+
# Some parameter documentations has been truncated, see
|
|
203
|
+
# {XTwitterScraper::Models::X::TweetGetQuotesParams} for more details.
|
|
204
|
+
#
|
|
41
205
|
# @param id [String]
|
|
42
206
|
#
|
|
207
|
+
# @param any_words [String] Words or quoted phrases where any one can match. Separate with spaces, commas, o
|
|
208
|
+
#
|
|
209
|
+
# @param cashtags [String] Cashtags separated by spaces, commas, or lines.
|
|
210
|
+
#
|
|
211
|
+
# @param conversation_id [String] Conversation ID filter.
|
|
212
|
+
#
|
|
43
213
|
# @param cursor [String] Pagination cursor for quote tweets
|
|
44
214
|
#
|
|
215
|
+
# @param exact_phrase [String] Exact phrase to match.
|
|
216
|
+
#
|
|
217
|
+
# @param exclude_words [String] Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
218
|
+
#
|
|
219
|
+
# @param from_user [String] Filter by author username.
|
|
220
|
+
#
|
|
221
|
+
# @param hashtags [String] Hashtags separated by spaces, commas, or lines.
|
|
222
|
+
#
|
|
45
223
|
# @param include_replies [Boolean] Include reply quotes (default false)
|
|
46
224
|
#
|
|
225
|
+
# @param in_reply_to_tweet_id [String] Only replies to this tweet ID.
|
|
226
|
+
#
|
|
227
|
+
# @param language [String] Language code filter, e.g. en or tr.
|
|
228
|
+
#
|
|
229
|
+
# @param media_type [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::MediaType] Filter by media type.
|
|
230
|
+
#
|
|
231
|
+
# @param mentioning [String] Filter tweets mentioning a username.
|
|
232
|
+
#
|
|
233
|
+
# @param min_faves [Integer] Minimum likes threshold.
|
|
234
|
+
#
|
|
235
|
+
# @param min_quotes [Integer] Minimum quote count threshold.
|
|
236
|
+
#
|
|
237
|
+
# @param min_replies [Integer] Minimum replies threshold.
|
|
238
|
+
#
|
|
239
|
+
# @param min_retweets [Integer] Minimum retweets threshold.
|
|
240
|
+
#
|
|
241
|
+
# @param page_size [Integer] Maximum items requested from this page (1-100, default 20). The response can con
|
|
242
|
+
#
|
|
243
|
+
# @param quotes [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::Quotes] Quote mode.
|
|
244
|
+
#
|
|
245
|
+
# @param quotes_of_tweet_id [String] Only quotes of this tweet ID.
|
|
246
|
+
#
|
|
247
|
+
# @param replies [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::Replies] Reply mode.
|
|
248
|
+
#
|
|
249
|
+
# @param retweets [Symbol, XTwitterScraper::Models::X::TweetGetQuotesParams::Retweets] Retweet mode.
|
|
250
|
+
#
|
|
251
|
+
# @param retweets_of_tweet_id [String] Only retweets of this tweet ID.
|
|
252
|
+
#
|
|
253
|
+
# @param since_date [Date] Start date in YYYY-MM-DD format.
|
|
254
|
+
#
|
|
47
255
|
# @param since_time [String] Unix timestamp - return quotes posted after this time
|
|
48
256
|
#
|
|
257
|
+
# @param to_user [String] Filter replies sent to a username.
|
|
258
|
+
#
|
|
259
|
+
# @param until_date [Date] End date in YYYY-MM-DD format.
|
|
260
|
+
#
|
|
49
261
|
# @param until_time [String] Unix timestamp - return quotes posted before this time
|
|
50
262
|
#
|
|
263
|
+
# @param url [String] URL substring or domain filter.
|
|
264
|
+
#
|
|
265
|
+
# @param verified_only [Boolean] Only return tweets from verified authors.
|
|
266
|
+
#
|
|
51
267
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
268
|
+
|
|
269
|
+
# Filter by media type.
|
|
270
|
+
module MediaType
|
|
271
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
272
|
+
|
|
273
|
+
IMAGES = :images
|
|
274
|
+
VIDEOS = :videos
|
|
275
|
+
GIFS = :gifs
|
|
276
|
+
MEDIA = :media
|
|
277
|
+
LINKS = :links
|
|
278
|
+
NONE = :none
|
|
279
|
+
|
|
280
|
+
# @!method self.values
|
|
281
|
+
# @return [Array<Symbol>]
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Quote mode.
|
|
285
|
+
module Quotes
|
|
286
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
287
|
+
|
|
288
|
+
INCLUDE = :include
|
|
289
|
+
EXCLUDE = :exclude
|
|
290
|
+
ONLY = :only
|
|
291
|
+
|
|
292
|
+
# @!method self.values
|
|
293
|
+
# @return [Array<Symbol>]
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Reply mode.
|
|
297
|
+
module Replies
|
|
298
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
299
|
+
|
|
300
|
+
INCLUDE = :include
|
|
301
|
+
EXCLUDE = :exclude
|
|
302
|
+
ONLY = :only
|
|
303
|
+
|
|
304
|
+
# @!method self.values
|
|
305
|
+
# @return [Array<Symbol>]
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
# Retweet mode.
|
|
309
|
+
module Retweets
|
|
310
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
311
|
+
|
|
312
|
+
INCLUDE = :include
|
|
313
|
+
EXCLUDE = :exclude
|
|
314
|
+
ONLY = :only
|
|
315
|
+
|
|
316
|
+
# @!method self.values
|
|
317
|
+
# @return [Array<Symbol>]
|
|
318
|
+
end
|
|
52
319
|
end
|
|
53
320
|
end
|
|
54
321
|
end
|