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
|
@@ -2,7 +2,7 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type list_retrieve_followers_params =
|
|
5
|
-
{ id: String, cursor: String }
|
|
5
|
+
{ id: String, cursor: String, page_size: Integer }
|
|
6
6
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class ListRetrieveFollowersParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -15,15 +15,21 @@ module XTwitterScraper
|
|
|
15
15
|
|
|
16
16
|
def cursor=: (String) -> String
|
|
17
17
|
|
|
18
|
+
attr_reader page_size: Integer?
|
|
19
|
+
|
|
20
|
+
def page_size=: (Integer) -> Integer
|
|
21
|
+
|
|
18
22
|
def initialize: (
|
|
19
23
|
id: String,
|
|
20
24
|
?cursor: String,
|
|
25
|
+
?page_size: Integer,
|
|
21
26
|
?request_options: XTwitterScraper::request_opts
|
|
22
27
|
) -> void
|
|
23
28
|
|
|
24
29
|
def to_hash: -> {
|
|
25
30
|
id: String,
|
|
26
31
|
cursor: String,
|
|
32
|
+
page_size: Integer,
|
|
27
33
|
request_options: XTwitterScraper::RequestOptions
|
|
28
34
|
}
|
|
29
35
|
end
|
|
@@ -2,7 +2,7 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type list_retrieve_members_params =
|
|
5
|
-
{ id: String, cursor: String }
|
|
5
|
+
{ id: String, cursor: String, page_size: Integer }
|
|
6
6
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class ListRetrieveMembersParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -15,15 +15,21 @@ module XTwitterScraper
|
|
|
15
15
|
|
|
16
16
|
def cursor=: (String) -> String
|
|
17
17
|
|
|
18
|
+
attr_reader page_size: Integer?
|
|
19
|
+
|
|
20
|
+
def page_size=: (Integer) -> Integer
|
|
21
|
+
|
|
18
22
|
def initialize: (
|
|
19
23
|
id: String,
|
|
20
24
|
?cursor: String,
|
|
25
|
+
?page_size: Integer,
|
|
21
26
|
?request_options: XTwitterScraper::request_opts
|
|
22
27
|
) -> void
|
|
23
28
|
|
|
24
29
|
def to_hash: -> {
|
|
25
30
|
id: String,
|
|
26
31
|
cursor: String,
|
|
32
|
+
page_size: Integer,
|
|
27
33
|
request_options: XTwitterScraper::RequestOptions
|
|
28
34
|
}
|
|
29
35
|
end
|
|
@@ -6,6 +6,7 @@ module XTwitterScraper
|
|
|
6
6
|
id: String,
|
|
7
7
|
cursor: String,
|
|
8
8
|
include_replies: bool,
|
|
9
|
+
page_size: Integer,
|
|
9
10
|
since_time: String,
|
|
10
11
|
until_time: String
|
|
11
12
|
}
|
|
@@ -25,6 +26,10 @@ module XTwitterScraper
|
|
|
25
26
|
|
|
26
27
|
def include_replies=: (bool) -> bool
|
|
27
28
|
|
|
29
|
+
attr_reader page_size: Integer?
|
|
30
|
+
|
|
31
|
+
def page_size=: (Integer) -> Integer
|
|
32
|
+
|
|
28
33
|
attr_reader since_time: String?
|
|
29
34
|
|
|
30
35
|
def since_time=: (String) -> String
|
|
@@ -37,6 +42,7 @@ module XTwitterScraper
|
|
|
37
42
|
id: String,
|
|
38
43
|
?cursor: String,
|
|
39
44
|
?include_replies: bool,
|
|
45
|
+
?page_size: Integer,
|
|
40
46
|
?since_time: String,
|
|
41
47
|
?until_time: String,
|
|
42
48
|
?request_options: XTwitterScraper::request_opts
|
|
@@ -46,6 +52,7 @@ module XTwitterScraper
|
|
|
46
52
|
id: String,
|
|
47
53
|
cursor: String,
|
|
48
54
|
include_replies: bool,
|
|
55
|
+
page_size: Integer,
|
|
49
56
|
since_time: String,
|
|
50
57
|
until_time: String,
|
|
51
58
|
request_options: XTwitterScraper::RequestOptions
|
|
@@ -2,13 +2,22 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type media_download_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
tweet_id: String,
|
|
7
|
+
tweet_ids: ::Array[String],
|
|
8
|
+
tweet_input: String,
|
|
9
|
+
tweet_url: String
|
|
10
|
+
}
|
|
6
11
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
12
|
|
|
8
13
|
class MediaDownloadParams < XTwitterScraper::Internal::Type::BaseModel
|
|
9
14
|
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
10
15
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
11
16
|
|
|
17
|
+
attr_reader tweet_id: String?
|
|
18
|
+
|
|
19
|
+
def tweet_id=: (String) -> String
|
|
20
|
+
|
|
12
21
|
attr_reader tweet_ids: ::Array[String]?
|
|
13
22
|
|
|
14
23
|
def tweet_ids=: (::Array[String]) -> ::Array[String]
|
|
@@ -17,15 +26,23 @@ module XTwitterScraper
|
|
|
17
26
|
|
|
18
27
|
def tweet_input=: (String) -> String
|
|
19
28
|
|
|
29
|
+
attr_reader tweet_url: String?
|
|
30
|
+
|
|
31
|
+
def tweet_url=: (String) -> String
|
|
32
|
+
|
|
20
33
|
def initialize: (
|
|
34
|
+
?tweet_id: String,
|
|
21
35
|
?tweet_ids: ::Array[String],
|
|
22
36
|
?tweet_input: String,
|
|
37
|
+
?tweet_url: String,
|
|
23
38
|
?request_options: XTwitterScraper::request_opts
|
|
24
39
|
) -> void
|
|
25
40
|
|
|
26
41
|
def to_hash: -> {
|
|
42
|
+
tweet_id: String,
|
|
27
43
|
tweet_ids: ::Array[String],
|
|
28
44
|
tweet_input: String,
|
|
45
|
+
tweet_url: String,
|
|
29
46
|
request_options: XTwitterScraper::RequestOptions
|
|
30
47
|
}
|
|
31
48
|
end
|
|
@@ -2,11 +2,7 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type media_upload_params =
|
|
5
|
-
{
|
|
6
|
-
account: String,
|
|
7
|
-
file: XTwitterScraper::Internal::file_input,
|
|
8
|
-
is_long_video: bool
|
|
9
|
-
}
|
|
5
|
+
{ account: String, url: String }
|
|
10
6
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
11
7
|
|
|
12
8
|
class MediaUploadParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -15,23 +11,17 @@ module XTwitterScraper
|
|
|
15
11
|
|
|
16
12
|
attr_accessor account: String
|
|
17
13
|
|
|
18
|
-
attr_accessor
|
|
19
|
-
|
|
20
|
-
attr_reader is_long_video: bool?
|
|
21
|
-
|
|
22
|
-
def is_long_video=: (bool) -> bool
|
|
14
|
+
attr_accessor url: String
|
|
23
15
|
|
|
24
16
|
def initialize: (
|
|
25
17
|
account: String,
|
|
26
|
-
|
|
27
|
-
?is_long_video: bool,
|
|
18
|
+
url: String,
|
|
28
19
|
?request_options: XTwitterScraper::request_opts
|
|
29
20
|
) -> void
|
|
30
21
|
|
|
31
22
|
def to_hash: -> {
|
|
32
23
|
account: String,
|
|
33
|
-
|
|
34
|
-
is_long_video: bool,
|
|
24
|
+
url: String,
|
|
35
25
|
request_options: XTwitterScraper::RequestOptions
|
|
36
26
|
}
|
|
37
27
|
end
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
module XTwitterScraper
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
|
-
type media_upload_response =
|
|
4
|
+
type media_upload_response =
|
|
5
|
+
{ media_id: String, media_url: String, success: true }
|
|
5
6
|
|
|
6
7
|
class MediaUploadResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
7
8
|
attr_accessor media_id: String
|
|
8
9
|
|
|
10
|
+
attr_accessor media_url: String
|
|
11
|
+
|
|
9
12
|
attr_accessor success: true
|
|
10
13
|
|
|
11
|
-
def initialize: (
|
|
14
|
+
def initialize: (
|
|
15
|
+
media_id: String,
|
|
16
|
+
media_url: String,
|
|
17
|
+
?success: true
|
|
18
|
+
) -> void
|
|
12
19
|
|
|
13
|
-
def to_hash: -> { media_id: String, success: true }
|
|
20
|
+
def to_hash: -> { media_id: String, media_url: String, success: true }
|
|
14
21
|
end
|
|
15
22
|
end
|
|
16
23
|
end
|
|
@@ -2,7 +2,7 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type profile_update_avatar_params =
|
|
5
|
-
{ account: String,
|
|
5
|
+
{ account: String, url: String }
|
|
6
6
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class ProfileUpdateAvatarParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -11,17 +11,17 @@ module XTwitterScraper
|
|
|
11
11
|
|
|
12
12
|
attr_accessor account: String
|
|
13
13
|
|
|
14
|
-
attr_accessor
|
|
14
|
+
attr_accessor url: String
|
|
15
15
|
|
|
16
16
|
def initialize: (
|
|
17
17
|
account: String,
|
|
18
|
-
|
|
18
|
+
url: String,
|
|
19
19
|
?request_options: XTwitterScraper::request_opts
|
|
20
20
|
) -> void
|
|
21
21
|
|
|
22
22
|
def to_hash: -> {
|
|
23
23
|
account: String,
|
|
24
|
-
|
|
24
|
+
url: String,
|
|
25
25
|
request_options: XTwitterScraper::RequestOptions
|
|
26
26
|
}
|
|
27
27
|
end
|
|
@@ -2,7 +2,7 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type profile_update_banner_params =
|
|
5
|
-
{ account: String,
|
|
5
|
+
{ account: String, url: String }
|
|
6
6
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class ProfileUpdateBannerParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -11,17 +11,17 @@ module XTwitterScraper
|
|
|
11
11
|
|
|
12
12
|
attr_accessor account: String
|
|
13
13
|
|
|
14
|
-
attr_accessor
|
|
14
|
+
attr_accessor url: String
|
|
15
15
|
|
|
16
16
|
def initialize: (
|
|
17
17
|
account: String,
|
|
18
|
-
|
|
18
|
+
url: String,
|
|
19
19
|
?request_options: XTwitterScraper::request_opts
|
|
20
20
|
) -> void
|
|
21
21
|
|
|
22
22
|
def to_hash: -> {
|
|
23
23
|
account: String,
|
|
24
|
-
|
|
24
|
+
url: String,
|
|
25
25
|
request_options: XTwitterScraper::RequestOptions
|
|
26
26
|
}
|
|
27
27
|
end
|
|
@@ -1,43 +1,20 @@
|
|
|
1
1
|
module XTwitterScraper
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
|
-
type tweet_author =
|
|
5
|
-
{
|
|
6
|
-
id: String,
|
|
7
|
-
followers: Integer,
|
|
8
|
-
username: String,
|
|
9
|
-
verified: bool,
|
|
10
|
-
profile_picture: String
|
|
11
|
-
}
|
|
4
|
+
type tweet_author = { followers: Integer, verified: bool }
|
|
12
5
|
|
|
13
|
-
class TweetAuthor < XTwitterScraper::
|
|
14
|
-
|
|
6
|
+
class TweetAuthor < XTwitterScraper::Models::UserProfile
|
|
7
|
+
def followers: -> Integer
|
|
15
8
|
|
|
16
|
-
|
|
9
|
+
def followers=: (Integer _) -> Integer
|
|
17
10
|
|
|
18
|
-
|
|
11
|
+
def verified: -> bool
|
|
19
12
|
|
|
20
|
-
|
|
13
|
+
def verified=: (bool _) -> bool
|
|
21
14
|
|
|
22
|
-
|
|
15
|
+
def initialize: (followers: Integer, verified: bool) -> void
|
|
23
16
|
|
|
24
|
-
def
|
|
25
|
-
|
|
26
|
-
def initialize: (
|
|
27
|
-
id: String,
|
|
28
|
-
followers: Integer,
|
|
29
|
-
username: String,
|
|
30
|
-
verified: bool,
|
|
31
|
-
?profile_picture: String
|
|
32
|
-
) -> void
|
|
33
|
-
|
|
34
|
-
def to_hash: -> {
|
|
35
|
-
id: String,
|
|
36
|
-
followers: Integer,
|
|
37
|
-
username: String,
|
|
38
|
-
verified: bool,
|
|
39
|
-
profile_picture: String
|
|
40
|
-
}
|
|
17
|
+
def to_hash: -> { followers: Integer, verified: bool }
|
|
41
18
|
end
|
|
42
19
|
end
|
|
43
20
|
end
|
|
@@ -4,12 +4,12 @@ module XTwitterScraper
|
|
|
4
4
|
type tweet_create_params =
|
|
5
5
|
{
|
|
6
6
|
account: String,
|
|
7
|
-
text: String,
|
|
8
7
|
attachment_url: String,
|
|
9
8
|
community_id: String,
|
|
10
9
|
is_note_tweet: bool,
|
|
11
|
-
|
|
12
|
-
reply_to_tweet_id: String
|
|
10
|
+
media: ::Array[String],
|
|
11
|
+
reply_to_tweet_id: String,
|
|
12
|
+
text: String
|
|
13
13
|
}
|
|
14
14
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
15
15
|
|
|
@@ -19,8 +19,6 @@ module XTwitterScraper
|
|
|
19
19
|
|
|
20
20
|
attr_accessor account: String
|
|
21
21
|
|
|
22
|
-
attr_accessor text: String
|
|
23
|
-
|
|
24
22
|
attr_reader attachment_url: String?
|
|
25
23
|
|
|
26
24
|
def attachment_url=: (String) -> String
|
|
@@ -33,33 +31,37 @@ module XTwitterScraper
|
|
|
33
31
|
|
|
34
32
|
def is_note_tweet=: (bool) -> bool
|
|
35
33
|
|
|
36
|
-
attr_reader
|
|
34
|
+
attr_reader media: ::Array[String]?
|
|
37
35
|
|
|
38
|
-
def
|
|
36
|
+
def media=: (::Array[String]) -> ::Array[String]
|
|
39
37
|
|
|
40
38
|
attr_reader reply_to_tweet_id: String?
|
|
41
39
|
|
|
42
40
|
def reply_to_tweet_id=: (String) -> String
|
|
43
41
|
|
|
42
|
+
attr_reader text: String?
|
|
43
|
+
|
|
44
|
+
def text=: (String) -> String
|
|
45
|
+
|
|
44
46
|
def initialize: (
|
|
45
47
|
account: String,
|
|
46
|
-
text: String,
|
|
47
48
|
?attachment_url: String,
|
|
48
49
|
?community_id: String,
|
|
49
50
|
?is_note_tweet: bool,
|
|
50
|
-
?
|
|
51
|
+
?media: ::Array[String],
|
|
51
52
|
?reply_to_tweet_id: String,
|
|
53
|
+
?text: String,
|
|
52
54
|
?request_options: XTwitterScraper::request_opts
|
|
53
55
|
) -> void
|
|
54
56
|
|
|
55
57
|
def to_hash: -> {
|
|
56
58
|
account: String,
|
|
57
|
-
text: String,
|
|
58
59
|
attachment_url: String,
|
|
59
60
|
community_id: String,
|
|
60
61
|
is_note_tweet: bool,
|
|
61
|
-
|
|
62
|
+
media: ::Array[String],
|
|
62
63
|
reply_to_tweet_id: String,
|
|
64
|
+
text: String,
|
|
63
65
|
request_options: XTwitterScraper::RequestOptions
|
|
64
66
|
}
|
|
65
67
|
end
|
|
@@ -1,16 +1,43 @@
|
|
|
1
1
|
module XTwitterScraper
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
|
-
type tweet_create_response =
|
|
4
|
+
type tweet_create_response =
|
|
5
|
+
{
|
|
6
|
+
charged: bool,
|
|
7
|
+
charged_credits: String,
|
|
8
|
+
success: true,
|
|
9
|
+
tweet_id: String,
|
|
10
|
+
write_action_id: String
|
|
11
|
+
}
|
|
5
12
|
|
|
6
13
|
class TweetCreateResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor charged: bool
|
|
15
|
+
|
|
16
|
+
attr_accessor charged_credits: String
|
|
17
|
+
|
|
7
18
|
attr_accessor success: true
|
|
8
19
|
|
|
9
20
|
attr_accessor tweet_id: String
|
|
10
21
|
|
|
11
|
-
|
|
22
|
+
attr_reader write_action_id: String?
|
|
23
|
+
|
|
24
|
+
def write_action_id=: (String) -> String
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
charged: bool,
|
|
28
|
+
charged_credits: String,
|
|
29
|
+
tweet_id: String,
|
|
30
|
+
?write_action_id: String,
|
|
31
|
+
?success: true
|
|
32
|
+
) -> void
|
|
12
33
|
|
|
13
|
-
def to_hash: -> {
|
|
34
|
+
def to_hash: -> {
|
|
35
|
+
charged: bool,
|
|
36
|
+
charged_credits: String,
|
|
37
|
+
success: true,
|
|
38
|
+
tweet_id: String,
|
|
39
|
+
write_action_id: String
|
|
40
|
+
}
|
|
14
41
|
end
|
|
15
42
|
end
|
|
16
43
|
end
|
|
@@ -11,15 +11,26 @@ module XTwitterScraper
|
|
|
11
11
|
retweet_count: Integer,
|
|
12
12
|
text: String,
|
|
13
13
|
view_count: Integer,
|
|
14
|
+
author: XTwitterScraper::X::TweetAuthor,
|
|
15
|
+
content_disclosure: XTwitterScraper::ContentDisclosure,
|
|
14
16
|
conversation_id: String,
|
|
15
17
|
created_at: String,
|
|
18
|
+
display_text_range: ::Array[Integer],
|
|
16
19
|
entities: ::Hash[Symbol, top],
|
|
20
|
+
in_reply_to_id: String,
|
|
21
|
+
in_reply_to_user_id: String,
|
|
22
|
+
in_reply_to_username: String,
|
|
23
|
+
is_limited_reply: bool,
|
|
17
24
|
is_note_tweet: bool,
|
|
18
25
|
is_quote_status: bool,
|
|
19
26
|
is_reply: bool,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
lang: String,
|
|
28
|
+
media: ::Array[XTwitterScraper::TweetMedia],
|
|
29
|
+
quoted_tweet: XTwitterScraper::EmbeddedTweet,
|
|
30
|
+
retweeted_tweet: XTwitterScraper::EmbeddedTweet,
|
|
31
|
+
source: String,
|
|
32
|
+
type: String,
|
|
33
|
+
url: String
|
|
23
34
|
}
|
|
24
35
|
|
|
25
36
|
class TweetDetail < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -39,6 +50,18 @@ module XTwitterScraper
|
|
|
39
50
|
|
|
40
51
|
attr_accessor view_count: Integer
|
|
41
52
|
|
|
53
|
+
attr_reader author: XTwitterScraper::X::TweetAuthor?
|
|
54
|
+
|
|
55
|
+
def author=: (
|
|
56
|
+
XTwitterScraper::X::TweetAuthor
|
|
57
|
+
) -> XTwitterScraper::X::TweetAuthor
|
|
58
|
+
|
|
59
|
+
attr_reader content_disclosure: XTwitterScraper::ContentDisclosure?
|
|
60
|
+
|
|
61
|
+
def content_disclosure=: (
|
|
62
|
+
XTwitterScraper::ContentDisclosure
|
|
63
|
+
) -> XTwitterScraper::ContentDisclosure
|
|
64
|
+
|
|
42
65
|
attr_reader conversation_id: String?
|
|
43
66
|
|
|
44
67
|
def conversation_id=: (String) -> String
|
|
@@ -47,10 +70,30 @@ module XTwitterScraper
|
|
|
47
70
|
|
|
48
71
|
def created_at=: (String) -> String
|
|
49
72
|
|
|
73
|
+
attr_reader display_text_range: ::Array[Integer]?
|
|
74
|
+
|
|
75
|
+
def display_text_range=: (::Array[Integer]) -> ::Array[Integer]
|
|
76
|
+
|
|
50
77
|
attr_reader entities: ::Hash[Symbol, top]?
|
|
51
78
|
|
|
52
79
|
def entities=: (::Hash[Symbol, top]) -> ::Hash[Symbol, top]
|
|
53
80
|
|
|
81
|
+
attr_reader in_reply_to_id: String?
|
|
82
|
+
|
|
83
|
+
def in_reply_to_id=: (String) -> String
|
|
84
|
+
|
|
85
|
+
attr_reader in_reply_to_user_id: String?
|
|
86
|
+
|
|
87
|
+
def in_reply_to_user_id=: (String) -> String
|
|
88
|
+
|
|
89
|
+
attr_reader in_reply_to_username: String?
|
|
90
|
+
|
|
91
|
+
def in_reply_to_username=: (String) -> String
|
|
92
|
+
|
|
93
|
+
attr_reader is_limited_reply: bool?
|
|
94
|
+
|
|
95
|
+
def is_limited_reply=: (bool) -> bool
|
|
96
|
+
|
|
54
97
|
attr_reader is_note_tweet: bool?
|
|
55
98
|
|
|
56
99
|
def is_note_tweet=: (bool) -> bool
|
|
@@ -63,20 +106,40 @@ module XTwitterScraper
|
|
|
63
106
|
|
|
64
107
|
def is_reply=: (bool) -> bool
|
|
65
108
|
|
|
66
|
-
attr_reader
|
|
109
|
+
attr_reader lang: String?
|
|
110
|
+
|
|
111
|
+
def lang=: (String) -> String
|
|
112
|
+
|
|
113
|
+
attr_reader media: ::Array[XTwitterScraper::TweetMedia]?
|
|
67
114
|
|
|
68
115
|
def media=: (
|
|
69
|
-
::Array[XTwitterScraper::
|
|
70
|
-
) -> ::Array[XTwitterScraper::
|
|
116
|
+
::Array[XTwitterScraper::TweetMedia]
|
|
117
|
+
) -> ::Array[XTwitterScraper::TweetMedia]
|
|
118
|
+
|
|
119
|
+
attr_reader quoted_tweet: XTwitterScraper::EmbeddedTweet?
|
|
120
|
+
|
|
121
|
+
def quoted_tweet=: (
|
|
122
|
+
XTwitterScraper::EmbeddedTweet
|
|
123
|
+
) -> XTwitterScraper::EmbeddedTweet
|
|
71
124
|
|
|
72
|
-
attr_reader
|
|
125
|
+
attr_reader retweeted_tweet: XTwitterScraper::EmbeddedTweet?
|
|
73
126
|
|
|
74
|
-
def
|
|
127
|
+
def retweeted_tweet=: (
|
|
128
|
+
XTwitterScraper::EmbeddedTweet
|
|
129
|
+
) -> XTwitterScraper::EmbeddedTweet
|
|
75
130
|
|
|
76
131
|
attr_reader source: String?
|
|
77
132
|
|
|
78
133
|
def source=: (String) -> String
|
|
79
134
|
|
|
135
|
+
attr_reader type: String?
|
|
136
|
+
|
|
137
|
+
def type=: (String) -> String
|
|
138
|
+
|
|
139
|
+
attr_reader url: String?
|
|
140
|
+
|
|
141
|
+
def url=: (String) -> String
|
|
142
|
+
|
|
80
143
|
def initialize: (
|
|
81
144
|
id: String,
|
|
82
145
|
bookmark_count: Integer,
|
|
@@ -86,15 +149,26 @@ module XTwitterScraper
|
|
|
86
149
|
retweet_count: Integer,
|
|
87
150
|
text: String,
|
|
88
151
|
view_count: Integer,
|
|
152
|
+
?author: XTwitterScraper::X::TweetAuthor,
|
|
153
|
+
?content_disclosure: XTwitterScraper::ContentDisclosure,
|
|
89
154
|
?conversation_id: String,
|
|
90
155
|
?created_at: String,
|
|
156
|
+
?display_text_range: ::Array[Integer],
|
|
91
157
|
?entities: ::Hash[Symbol, top],
|
|
158
|
+
?in_reply_to_id: String,
|
|
159
|
+
?in_reply_to_user_id: String,
|
|
160
|
+
?in_reply_to_username: String,
|
|
161
|
+
?is_limited_reply: bool,
|
|
92
162
|
?is_note_tweet: bool,
|
|
93
163
|
?is_quote_status: bool,
|
|
94
164
|
?is_reply: bool,
|
|
95
|
-
?
|
|
96
|
-
?
|
|
97
|
-
?
|
|
165
|
+
?lang: String,
|
|
166
|
+
?media: ::Array[XTwitterScraper::TweetMedia],
|
|
167
|
+
?quoted_tweet: XTwitterScraper::EmbeddedTweet,
|
|
168
|
+
?retweeted_tweet: XTwitterScraper::EmbeddedTweet,
|
|
169
|
+
?source: String,
|
|
170
|
+
?type: String,
|
|
171
|
+
?url: String
|
|
98
172
|
) -> void
|
|
99
173
|
|
|
100
174
|
def to_hash: -> {
|
|
@@ -106,63 +180,27 @@ module XTwitterScraper
|
|
|
106
180
|
retweet_count: Integer,
|
|
107
181
|
text: String,
|
|
108
182
|
view_count: Integer,
|
|
183
|
+
author: XTwitterScraper::X::TweetAuthor,
|
|
184
|
+
content_disclosure: XTwitterScraper::ContentDisclosure,
|
|
109
185
|
conversation_id: String,
|
|
110
186
|
created_at: String,
|
|
187
|
+
display_text_range: ::Array[Integer],
|
|
111
188
|
entities: ::Hash[Symbol, top],
|
|
189
|
+
in_reply_to_id: String,
|
|
190
|
+
in_reply_to_user_id: String,
|
|
191
|
+
in_reply_to_username: String,
|
|
192
|
+
is_limited_reply: bool,
|
|
112
193
|
is_note_tweet: bool,
|
|
113
194
|
is_quote_status: bool,
|
|
114
195
|
is_reply: bool,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
196
|
+
lang: String,
|
|
197
|
+
media: ::Array[XTwitterScraper::TweetMedia],
|
|
198
|
+
quoted_tweet: XTwitterScraper::EmbeddedTweet,
|
|
199
|
+
retweeted_tweet: XTwitterScraper::EmbeddedTweet,
|
|
200
|
+
source: String,
|
|
201
|
+
type: String,
|
|
202
|
+
url: String
|
|
118
203
|
}
|
|
119
|
-
|
|
120
|
-
type media =
|
|
121
|
-
{
|
|
122
|
-
media_url: String,
|
|
123
|
-
type: XTwitterScraper::Models::X::TweetDetail::Media::type_,
|
|
124
|
-
url: String
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
class Media < XTwitterScraper::Internal::Type::BaseModel
|
|
128
|
-
attr_reader media_url: String?
|
|
129
|
-
|
|
130
|
-
def media_url=: (String) -> String
|
|
131
|
-
|
|
132
|
-
attr_reader type: XTwitterScraper::Models::X::TweetDetail::Media::type_?
|
|
133
|
-
|
|
134
|
-
def type=: (
|
|
135
|
-
XTwitterScraper::Models::X::TweetDetail::Media::type_
|
|
136
|
-
) -> XTwitterScraper::Models::X::TweetDetail::Media::type_
|
|
137
|
-
|
|
138
|
-
attr_reader url: String?
|
|
139
|
-
|
|
140
|
-
def url=: (String) -> String
|
|
141
|
-
|
|
142
|
-
def initialize: (
|
|
143
|
-
?media_url: String,
|
|
144
|
-
?type: XTwitterScraper::Models::X::TweetDetail::Media::type_,
|
|
145
|
-
?url: String
|
|
146
|
-
) -> void
|
|
147
|
-
|
|
148
|
-
def to_hash: -> {
|
|
149
|
-
media_url: String,
|
|
150
|
-
type: XTwitterScraper::Models::X::TweetDetail::Media::type_,
|
|
151
|
-
url: String
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
type type_ = :photo | :video | :animated_gif
|
|
155
|
-
|
|
156
|
-
module Type
|
|
157
|
-
extend XTwitterScraper::Internal::Type::Enum
|
|
158
|
-
|
|
159
|
-
PHOTO: :photo
|
|
160
|
-
VIDEO: :video
|
|
161
|
-
ANIMATED_GIF: :animated_gif
|
|
162
|
-
|
|
163
|
-
def self?.values: -> ::Array[XTwitterScraper::Models::X::TweetDetail::Media::type_]
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
204
|
end
|
|
167
205
|
end
|
|
168
206
|
end
|