x-twitter-scraper 0.3.0 → 0.4.0
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 +25 -0
- data/README.md +5 -5
- data/lib/x_twitter_scraper/models/api_key.rb +2 -0
- data/lib/x_twitter_scraper/models/api_key_list_response.rb +3 -44
- data/lib/x_twitter_scraper/models/delivery.rb +2 -0
- data/lib/x_twitter_scraper/models/draft.rb +2 -0
- data/lib/x_twitter_scraper/models/draft_detail.rb +3 -0
- data/lib/x_twitter_scraper/models/draft_list_params.rb +2 -1
- data/lib/x_twitter_scraper/models/draft_list_response.rb +3 -38
- data/lib/x_twitter_scraper/models/draw_detail.rb +2 -0
- data/lib/x_twitter_scraper/models/draw_export_params.rb +3 -1
- data/lib/x_twitter_scraper/models/draw_list_item.rb +2 -0
- data/lib/x_twitter_scraper/models/draw_list_params.rb +4 -3
- data/lib/x_twitter_scraper/models/draw_list_response.rb +3 -50
- data/lib/x_twitter_scraper/models/draw_retrieve_response.rb +8 -124
- data/lib/x_twitter_scraper/models/draw_run_response.rb +3 -32
- data/lib/x_twitter_scraper/models/error.rb +2 -0
- data/lib/x_twitter_scraper/models/event.rb +11 -18
- data/lib/x_twitter_scraper/models/event_detail.rb +7 -18
- data/lib/x_twitter_scraper/models/event_list_params.rb +10 -21
- data/lib/x_twitter_scraper/models/event_list_response.rb +3 -59
- data/lib/x_twitter_scraper/models/event_type.rb +1 -0
- data/lib/x_twitter_scraper/models/extraction_estimate_cost_params.rb +9 -7
- data/lib/x_twitter_scraper/models/extraction_export_results_params.rb +5 -1
- data/lib/x_twitter_scraper/models/extraction_job.rb +11 -1
- data/lib/x_twitter_scraper/models/extraction_list_params.rb +10 -5
- data/lib/x_twitter_scraper/models/extraction_list_response.rb +3 -87
- data/lib/x_twitter_scraper/models/extraction_retrieve_params.rb +4 -3
- data/lib/x_twitter_scraper/models/extraction_run_params.rb +3 -1
- data/lib/x_twitter_scraper/models/extraction_run_response.rb +10 -15
- data/lib/x_twitter_scraper/models/integration.rb +12 -32
- data/lib/x_twitter_scraper/models/integration_create_params.rb +8 -32
- data/lib/x_twitter_scraper/models/integration_delivery.rb +2 -0
- data/lib/x_twitter_scraper/models/integration_list_deliveries_params.rb +4 -1
- data/lib/x_twitter_scraper/models/integration_list_deliveries_response.rb +3 -67
- data/lib/x_twitter_scraper/models/integration_list_response.rb +3 -112
- data/lib/x_twitter_scraper/models/integration_update_params.rb +4 -19
- data/lib/x_twitter_scraper/models/monitor.rb +12 -17
- data/lib/x_twitter_scraper/models/monitor_create_params.rb +4 -19
- data/lib/x_twitter_scraper/models/monitor_create_response.rb +8 -17
- data/lib/x_twitter_scraper/models/monitor_list_response.rb +3 -60
- data/lib/x_twitter_scraper/models/monitor_update_params.rb +7 -19
- data/lib/x_twitter_scraper/models/paginated_tweets.rb +5 -96
- data/lib/x_twitter_scraper/models/paginated_users.rb +5 -73
- data/lib/x_twitter_scraper/models/radar_item.rb +2 -0
- data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rb +20 -3
- data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rb +3 -62
- data/lib/x_twitter_scraper/models/style_compare_response.rb +9 -134
- data/lib/x_twitter_scraper/models/style_delete_params.rb +4 -4
- data/lib/x_twitter_scraper/models/style_get_performance_params.rb +4 -4
- data/lib/x_twitter_scraper/models/style_list_response.rb +3 -32
- data/lib/x_twitter_scraper/models/style_profile.rb +3 -0
- data/lib/x_twitter_scraper/models/style_profile_summary.rb +2 -0
- data/lib/x_twitter_scraper/models/style_retrieve_params.rb +4 -4
- data/lib/x_twitter_scraper/models/style_update_params.rb +4 -4
- data/lib/x_twitter_scraper/models/trend_list_params.rb +2 -1
- data/lib/x_twitter_scraper/models/webhook.rb +11 -17
- data/lib/x_twitter_scraper/models/webhook_create_params.rb +4 -19
- data/lib/x_twitter_scraper/models/webhook_create_response.rb +8 -17
- data/lib/x_twitter_scraper/models/webhook_list_deliveries_response.rb +3 -56
- data/lib/x_twitter_scraper/models/webhook_list_response.rb +3 -54
- data/lib/x_twitter_scraper/models/webhook_update_params.rb +8 -19
- data/lib/x_twitter_scraper/models/winner.rb +2 -0
- data/lib/x_twitter_scraper/models/x/account_bulk_retry_params.rb +16 -0
- data/lib/x_twitter_scraper/models/x/account_bulk_retry_response.rb +19 -0
- data/lib/x_twitter_scraper/models/x/account_list_response.rb +3 -38
- data/lib/x_twitter_scraper/models/x/account_reauth_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/bookmark_list_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/communities/join_create_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/communities/join_delete_all_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rb +33 -0
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/community_action_result.rb +2 -0
- data/lib/x_twitter_scraper/models/x/community_create_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/community_delete_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/community_retrieve_info_response.rb +6 -6
- data/lib/x_twitter_scraper/models/x/community_retrieve_moderators_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/community_retrieve_search_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/dm_retrieve_history_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/dm_send_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/list_retrieve_followers_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/list_retrieve_members_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/list_retrieve_tweets_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/media_upload_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/profile_update_avatar_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/profile_update_banner_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/profile_update_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/search_tweet.rb +20 -1
- data/lib/x_twitter_scraper/models/x/tweet_author.rb +2 -0
- data/lib/x_twitter_scraper/models/x/tweet_delete_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweet_detail.rb +109 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweet_get_quotes_params.rb +8 -8
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweet_get_thread_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweet_retrieve_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/tweet_retrieve_response.rb +9 -100
- data/lib/x_twitter_scraper/models/x/tweet_search_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweets/like_create_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweets/like_delete_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweets/retweet_create_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweets/retweet_delete_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/user_profile.rb +3 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_following_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/user_retrieve_likes_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_media_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_mentions_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/user_retrieve_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/user_retrieve_search_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/users/follow_create_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/users/follow_delete_all_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/x_account.rb +2 -0
- data/lib/x_twitter_scraper/models/x/x_account_detail.rb +3 -0
- data/lib/x_twitter_scraper/models/x_get_article_response.rb +5 -38
- 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 +2 -2
- data/lib/x_twitter_scraper/models/x_get_trends_response.rb +57 -0
- data/lib/x_twitter_scraper/resources/drafts.rb +5 -5
- data/lib/x_twitter_scraper/resources/draws.rb +3 -3
- data/lib/x_twitter_scraper/resources/events.rb +6 -6
- data/lib/x_twitter_scraper/resources/extractions.rb +12 -12
- data/lib/x_twitter_scraper/resources/integrations.rb +11 -11
- data/lib/x_twitter_scraper/resources/monitors.rb +6 -6
- data/lib/x_twitter_scraper/resources/radar.rb +1 -1
- data/lib/x_twitter_scraper/resources/styles.rb +22 -22
- data/lib/x_twitter_scraper/resources/support/tickets.rb +8 -3
- data/lib/x_twitter_scraper/resources/trends.rb +2 -2
- data/lib/x_twitter_scraper/resources/webhooks.rb +4 -4
- data/lib/x_twitter_scraper/resources/x/accounts.rb +24 -4
- data/lib/x_twitter_scraper/resources/x/bookmarks.rb +3 -3
- data/lib/x_twitter_scraper/resources/x/communities/join.rb +6 -6
- data/lib/x_twitter_scraper/resources/x/communities/tweets.rb +30 -5
- data/lib/x_twitter_scraper/resources/x/communities.rb +12 -12
- data/lib/x_twitter_scraper/resources/x/dm.rb +2 -2
- data/lib/x_twitter_scraper/resources/x/lists.rb +11 -11
- data/lib/x_twitter_scraper/resources/x/media.rb +1 -1
- data/lib/x_twitter_scraper/resources/x/profile.rb +3 -3
- data/lib/x_twitter_scraper/resources/x/tweets/like.rb +10 -10
- data/lib/x_twitter_scraper/resources/x/tweets/retweet.rb +10 -10
- data/lib/x_twitter_scraper/resources/x/tweets.rb +46 -39
- data/lib/x_twitter_scraper/resources/x/users/follow.rb +10 -10
- data/lib/x_twitter_scraper/resources/x/users.rb +45 -45
- data/lib/x_twitter_scraper/resources/x.rb +13 -7
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/lib/x_twitter_scraper.rb +4 -28
- data/rbi/x_twitter_scraper/models/api_key.rbi +1 -0
- data/rbi/x_twitter_scraper/models/api_key_list_response.rbi +5 -78
- data/rbi/x_twitter_scraper/models/delivery.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draft.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draft_detail.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draft_list_params.rbi +2 -0
- data/rbi/x_twitter_scraper/models/draft_list_response.rbi +3 -63
- data/rbi/x_twitter_scraper/models/draw_detail.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draw_export_params.rbi +3 -0
- data/rbi/x_twitter_scraper/models/draw_list_item.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draw_list_params.rbi +4 -2
- data/rbi/x_twitter_scraper/models/draw_list_response.rbi +3 -76
- data/rbi/x_twitter_scraper/models/draw_retrieve_response.rbi +13 -178
- data/rbi/x_twitter_scraper/models/draw_run_response.rbi +3 -52
- data/rbi/x_twitter_scraper/models/error.rbi +1 -0
- data/rbi/x_twitter_scraper/models/event.rbi +14 -31
- data/rbi/x_twitter_scraper/models/event_detail.rbi +6 -47
- data/rbi/x_twitter_scraper/models/event_list_params.rbi +12 -63
- data/rbi/x_twitter_scraper/models/event_list_response.rbi +3 -122
- data/rbi/x_twitter_scraper/models/event_type.rbi +1 -0
- data/rbi/x_twitter_scraper/models/extraction_estimate_cost_params.rbi +9 -6
- data/rbi/x_twitter_scraper/models/extraction_export_results_params.rbi +8 -1
- data/rbi/x_twitter_scraper/models/extraction_job.rbi +8 -4
- data/rbi/x_twitter_scraper/models/extraction_list_params.rbi +10 -2
- data/rbi/x_twitter_scraper/models/extraction_list_response.rbi +3 -254
- data/rbi/x_twitter_scraper/models/extraction_retrieve_params.rbi +4 -2
- data/rbi/x_twitter_scraper/models/extraction_run_params.rbi +3 -0
- data/rbi/x_twitter_scraper/models/extraction_run_response.rbi +12 -40
- data/rbi/x_twitter_scraper/models/integration.rbi +12 -81
- data/rbi/x_twitter_scraper/models/integration_create_params.rbi +9 -96
- data/rbi/x_twitter_scraper/models/integration_delivery.rbi +1 -0
- data/rbi/x_twitter_scraper/models/integration_list_deliveries_params.rbi +7 -1
- data/rbi/x_twitter_scraper/models/integration_list_deliveries_response.rbi +3 -119
- data/rbi/x_twitter_scraper/models/integration_list_response.rbi +3 -227
- data/rbi/x_twitter_scraper/models/integration_update_params.rbi +6 -74
- data/rbi/x_twitter_scraper/models/monitor.rbi +6 -48
- data/rbi/x_twitter_scraper/models/monitor_create_params.rbi +5 -62
- data/rbi/x_twitter_scraper/models/monitor_create_response.rbi +12 -70
- data/rbi/x_twitter_scraper/models/monitor_list_response.rbi +3 -141
- data/rbi/x_twitter_scraper/models/monitor_update_params.rbi +12 -69
- data/rbi/x_twitter_scraper/models/paginated_tweets.rbi +4 -169
- data/rbi/x_twitter_scraper/models/paginated_users.rbi +4 -120
- data/rbi/x_twitter_scraper/models/radar_item.rbi +1 -0
- data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbi +78 -4
- data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbi +3 -108
- data/rbi/x_twitter_scraper/models/style_compare_response.rbi +16 -259
- data/rbi/x_twitter_scraper/models/style_delete_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/style_get_performance_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/style_list_response.rbi +3 -54
- data/rbi/x_twitter_scraper/models/style_profile.rbi +1 -0
- data/rbi/x_twitter_scraper/models/style_profile_summary.rbi +1 -0
- data/rbi/x_twitter_scraper/models/style_retrieve_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/style_update_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/trend_list_params.rbi +2 -0
- data/rbi/x_twitter_scraper/models/webhook.rbi +13 -49
- data/rbi/x_twitter_scraper/models/webhook_create_params.rbi +5 -62
- data/rbi/x_twitter_scraper/models/webhook_create_response.rbi +12 -70
- data/rbi/x_twitter_scraper/models/webhook_list_deliveries_response.rbi +5 -105
- data/rbi/x_twitter_scraper/models/webhook_list_response.rbi +5 -134
- data/rbi/x_twitter_scraper/models/webhook_update_params.rbi +6 -68
- data/rbi/x_twitter_scraper/models/winner.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/account_bulk_retry_params.rbi +34 -0
- data/rbi/x_twitter_scraper/models/x/account_bulk_retry_response.rbi +32 -0
- data/rbi/x_twitter_scraper/models/x/account_list_response.rbi +3 -68
- data/rbi/x_twitter_scraper/models/x/account_reauth_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/bookmark_list_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/communities/join_create_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbi +59 -0
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/community_action_result.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/community_create_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/community_delete_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/community_retrieve_info_response.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/community_retrieve_moderators_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/community_retrieve_search_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/dm_retrieve_history_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/dm_send_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/list_retrieve_followers_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/list_retrieve_members_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/list_retrieve_tweets_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/media_upload_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/profile_update_avatar_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/profile_update_banner_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/profile_update_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/search_tweet.rbi +12 -0
- data/rbi/x_twitter_scraper/models/x/tweet_author.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/tweet_delete_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweet_detail.rbi +195 -3
- data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_params.rbi +8 -8
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweet_get_thread_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweet_retrieve_params.rbi +4 -7
- data/rbi/x_twitter_scraper/models/x/tweet_retrieve_response.rbi +16 -171
- data/rbi/x_twitter_scraper/models/x/tweet_search_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweets/like_create_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweets/like_delete_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweets/retweet_create_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/user_profile.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_following_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_media_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/user_retrieve_params.rbi +4 -7
- data/rbi/x_twitter_scraper/models/x/user_retrieve_search_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/users/follow_create_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/users/follow_delete_all_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/x_account.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/x_account_detail.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x_get_article_response.rbi +10 -71
- 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 +2 -2
- data/rbi/x_twitter_scraper/models/x_get_trends_response.rbi +102 -0
- data/rbi/x_twitter_scraper/resources/drafts.rbi +3 -2
- data/rbi/x_twitter_scraper/resources/draws.rbi +3 -1
- data/rbi/x_twitter_scraper/resources/events.rbi +6 -3
- data/rbi/x_twitter_scraper/resources/extractions.rbi +12 -5
- data/rbi/x_twitter_scraper/resources/integrations.rbi +10 -13
- data/rbi/x_twitter_scraper/resources/monitors.rbi +6 -6
- data/rbi/x_twitter_scraper/resources/radar.rbi +2 -1
- data/rbi/x_twitter_scraper/resources/styles.rbi +15 -15
- data/rbi/x_twitter_scraper/resources/support/tickets.rbi +17 -3
- data/rbi/x_twitter_scraper/resources/trends.rbi +2 -1
- data/rbi/x_twitter_scraper/resources/webhooks.rbi +5 -5
- data/rbi/x_twitter_scraper/resources/x/accounts.rbi +13 -3
- data/rbi/x_twitter_scraper/resources/x/bookmarks.rbi +2 -2
- data/rbi/x_twitter_scraper/resources/x/communities/join.rbi +4 -8
- data/rbi/x_twitter_scraper/resources/x/communities/tweets.rbi +21 -4
- data/rbi/x_twitter_scraper/resources/x/communities.rbi +9 -9
- data/rbi/x_twitter_scraper/resources/x/dm.rbi +2 -2
- data/rbi/x_twitter_scraper/resources/x/lists.rbi +8 -8
- data/rbi/x_twitter_scraper/resources/x/media.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/x/profile.rbi +3 -3
- data/rbi/x_twitter_scraper/resources/x/tweets/like.rbi +8 -6
- data/rbi/x_twitter_scraper/resources/x/tweets/retweet.rbi +8 -6
- data/rbi/x_twitter_scraper/resources/x/tweets.rbi +33 -28
- data/rbi/x_twitter_scraper/resources/x/users/follow.rbi +6 -6
- data/rbi/x_twitter_scraper/resources/x/users.rbi +33 -34
- data/rbi/x_twitter_scraper/resources/x.rbi +11 -5
- data/sig/x_twitter_scraper/models/api_key_list_response.rbs +4 -53
- data/sig/x_twitter_scraper/models/draft_list_response.rbs +4 -45
- data/sig/x_twitter_scraper/models/draw_list_response.rbs +4 -53
- data/sig/x_twitter_scraper/models/draw_retrieve_response.rbs +8 -124
- data/sig/x_twitter_scraper/models/draw_run_response.rbs +4 -36
- data/sig/x_twitter_scraper/models/event.rbs +4 -25
- data/sig/x_twitter_scraper/models/event_detail.rbs +4 -25
- data/sig/x_twitter_scraper/models/event_list_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/event_list_response.rbs +4 -67
- data/sig/x_twitter_scraper/models/extraction_list_response.rbs +4 -109
- data/sig/x_twitter_scraper/models/extraction_run_response.rbs +5 -15
- data/sig/x_twitter_scraper/models/integration.rbs +9 -40
- data/sig/x_twitter_scraper/models/integration_create_params.rbs +8 -39
- data/sig/x_twitter_scraper/models/integration_list_deliveries_response.rbs +4 -78
- data/sig/x_twitter_scraper/models/integration_list_response.rbs +4 -114
- data/sig/x_twitter_scraper/models/integration_update_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/monitor.rbs +4 -25
- data/sig/x_twitter_scraper/models/monitor_create_params.rbs +4 -25
- data/sig/x_twitter_scraper/models/monitor_create_response.rbs +4 -25
- data/sig/x_twitter_scraper/models/monitor_list_response.rbs +4 -70
- data/sig/x_twitter_scraper/models/monitor_update_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/paginated_tweets.rbs +4 -113
- data/sig/x_twitter_scraper/models/paginated_users.rbs +4 -87
- data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbs +30 -5
- data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbs +4 -70
- data/sig/x_twitter_scraper/models/style_compare_response.rbs +8 -154
- data/sig/x_twitter_scraper/models/style_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/style_get_performance_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/style_list_response.rbs +4 -38
- data/sig/x_twitter_scraper/models/style_retrieve_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/style_update_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/webhook.rbs +4 -25
- data/sig/x_twitter_scraper/models/webhook_create_params.rbs +4 -28
- data/sig/x_twitter_scraper/models/webhook_create_response.rbs +4 -25
- data/sig/x_twitter_scraper/models/webhook_list_deliveries_response.rbs +4 -68
- data/sig/x_twitter_scraper/models/webhook_list_response.rbs +4 -69
- data/sig/x_twitter_scraper/models/webhook_update_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/x/account_bulk_retry_params.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/account_bulk_retry_response.rbs +15 -0
- data/sig/x_twitter_scraper/models/x/account_list_response.rbs +4 -45
- data/sig/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbs +34 -0
- data/sig/x_twitter_scraper/models/x/search_tweet.rbs +7 -0
- data/sig/x_twitter_scraper/models/x/tweet_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweet_detail.rbs +108 -3
- data/sig/x_twitter_scraper/models/x/tweet_retrieve_params.rbs +4 -5
- data/sig/x_twitter_scraper/models/x/tweet_retrieve_response.rbs +10 -108
- data/sig/x_twitter_scraper/models/x/tweets/like_create_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweets/like_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweets/retweet_create_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/user_retrieve_params.rbs +4 -5
- data/sig/x_twitter_scraper/models/x/users/follow_create_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/users/follow_delete_all_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x_get_article_response.rbs +6 -45
- data/sig/x_twitter_scraper/models/x_get_trends_response.rbs +63 -0
- data/sig/x_twitter_scraper/resources/drafts.rbs +2 -2
- data/sig/x_twitter_scraper/resources/events.rbs +2 -2
- data/sig/x_twitter_scraper/resources/integrations.rbs +6 -6
- data/sig/x_twitter_scraper/resources/monitors.rbs +4 -4
- data/sig/x_twitter_scraper/resources/radar.rbs +1 -1
- data/sig/x_twitter_scraper/resources/styles.rbs +7 -7
- data/sig/x_twitter_scraper/resources/webhooks.rbs +3 -3
- data/sig/x_twitter_scraper/resources/x/accounts.rbs +5 -1
- data/sig/x_twitter_scraper/resources/x/bookmarks.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 +7 -1
- data/sig/x_twitter_scraper/resources/x/communities.rbs +3 -3
- data/sig/x_twitter_scraper/resources/x/lists.rbs +3 -3
- data/sig/x_twitter_scraper/resources/x/tweets/like.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/tweets/retweet.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/tweets.rbs +9 -9
- data/sig/x_twitter_scraper/resources/x/users/follow.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/users.rbs +12 -12
- data/sig/x_twitter_scraper/resources/x.rbs +4 -2
- metadata +17 -88
- data/lib/x_twitter_scraper/models/draft_create_response.rb +0 -46
- data/lib/x_twitter_scraper/models/draft_retrieve_response.rb +0 -46
- data/lib/x_twitter_scraper/models/event_retrieve_response.rb +0 -74
- data/lib/x_twitter_scraper/models/integration_create_response.rb +0 -114
- data/lib/x_twitter_scraper/models/integration_retrieve_response.rb +0 -114
- data/lib/x_twitter_scraper/models/integration_update_response.rb +0 -114
- data/lib/x_twitter_scraper/models/monitor_retrieve_response.rb +0 -62
- data/lib/x_twitter_scraper/models/monitor_update_response.rb +0 -62
- data/lib/x_twitter_scraper/models/style_analyze_response.rb +0 -69
- data/lib/x_twitter_scraper/models/style_retrieve_response.rb +0 -69
- data/lib/x_twitter_scraper/models/style_update_response.rb +0 -69
- data/lib/x_twitter_scraper/models/webhook_update_response.rb +0 -56
- data/lib/x_twitter_scraper/models/x/account_retrieve_response.rb +0 -60
- data/lib/x_twitter_scraper/models/x/bookmark_list_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/communities/join_create_response.rb +0 -32
- data/lib/x_twitter_scraper/models/x/communities/join_delete_all_response.rb +0 -32
- data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_response.rb +0 -101
- data/lib/x_twitter_scraper/models/x/tweet_get_quotes_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_response.rb +0 -101
- data/lib/x_twitter_scraper/models/x/tweet_get_thread_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/tweet_search_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rb +0 -101
- data/lib/x_twitter_scraper/models/x/user_retrieve_likes_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/user_retrieve_media_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/user_retrieve_response.rb +0 -78
- data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x_get_home_timeline_response.rb +0 -122
- data/rbi/x_twitter_scraper/models/draft_create_response.rbi +0 -67
- data/rbi/x_twitter_scraper/models/draft_retrieve_response.rbi +0 -67
- data/rbi/x_twitter_scraper/models/event_retrieve_response.rbi +0 -135
- data/rbi/x_twitter_scraper/models/integration_create_response.rbi +0 -215
- data/rbi/x_twitter_scraper/models/integration_retrieve_response.rbi +0 -215
- data/rbi/x_twitter_scraper/models/integration_update_response.rbi +0 -215
- data/rbi/x_twitter_scraper/models/monitor_retrieve_response.rbi +0 -134
- data/rbi/x_twitter_scraper/models/monitor_update_response.rbi +0 -134
- data/rbi/x_twitter_scraper/models/style_analyze_response.rbi +0 -120
- data/rbi/x_twitter_scraper/models/style_retrieve_response.rbi +0 -120
- data/rbi/x_twitter_scraper/models/style_update_response.rbi +0 -120
- data/rbi/x_twitter_scraper/models/webhook_update_response.rbi +0 -122
- data/rbi/x_twitter_scraper/models/x/account_retrieve_response.rbi +0 -91
- data/rbi/x_twitter_scraper/models/x/bookmark_list_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/communities/join_create_response.rbi +0 -50
- data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_response.rbi +0 -50
- data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_response.rbi +0 -177
- data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_response.rbi +0 -177
- data/rbi/x_twitter_scraper/models/x/tweet_get_thread_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/tweet_search_response.rbi +0 -229
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rbi +0 -177
- data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_response.rbi +0 -233
- data/rbi/x_twitter_scraper/models/x/user_retrieve_media_response.rbi +0 -233
- data/rbi/x_twitter_scraper/models/x/user_retrieve_response.rbi +0 -124
- data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_response.rbi +0 -233
- data/rbi/x_twitter_scraper/models/x_get_home_timeline_response.rbi +0 -227
- data/sig/x_twitter_scraper/models/draft_create_response.rbs +0 -49
- data/sig/x_twitter_scraper/models/draft_retrieve_response.rbs +0 -49
- data/sig/x_twitter_scraper/models/event_retrieve_response.rbs +0 -73
- data/sig/x_twitter_scraper/models/integration_create_response.rbs +0 -109
- data/sig/x_twitter_scraper/models/integration_retrieve_response.rbs +0 -109
- data/sig/x_twitter_scraper/models/integration_update_response.rbs +0 -109
- data/sig/x_twitter_scraper/models/monitor_retrieve_response.rbs +0 -66
- data/sig/x_twitter_scraper/models/monitor_update_response.rbs +0 -66
- data/sig/x_twitter_scraper/models/style_analyze_response.rbs +0 -76
- data/sig/x_twitter_scraper/models/style_retrieve_response.rbs +0 -76
- data/sig/x_twitter_scraper/models/style_update_response.rbs +0 -76
- data/sig/x_twitter_scraper/models/webhook_update_response.rbs +0 -61
- data/sig/x_twitter_scraper/models/x/account_retrieve_response.rbs +0 -63
- data/sig/x_twitter_scraper/models/x/bookmark_list_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/communities/join_create_response.rbs +0 -30
- data/sig/x_twitter_scraper/models/x/communities/join_delete_all_response.rbs +0 -30
- data/sig/x_twitter_scraper/models/x/tweet_get_favoriters_response.rbs +0 -115
- data/sig/x_twitter_scraper/models/x/tweet_get_quotes_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/tweet_get_replies_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/tweet_get_retweeters_response.rbs +0 -115
- data/sig/x_twitter_scraper/models/x/tweet_get_thread_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/tweet_search_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rbs +0 -115
- data/sig/x_twitter_scraper/models/x/user_retrieve_likes_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/user_retrieve_media_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/user_retrieve_response.rbs +0 -88
- data/sig/x_twitter_scraper/models/x/user_retrieve_tweets_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x_get_home_timeline_response.rbs +0 -139
|
@@ -44,10 +44,21 @@ module XTwitterScraper
|
|
|
44
44
|
|
|
45
45
|
# Source filter. One of: github, google_trends, hacker_news, polymarket, reddit,
|
|
46
46
|
# trustmrr, wikipedia
|
|
47
|
-
sig
|
|
47
|
+
sig do
|
|
48
|
+
returns(
|
|
49
|
+
T.nilable(
|
|
50
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::OrSymbol
|
|
51
|
+
)
|
|
52
|
+
)
|
|
53
|
+
end
|
|
48
54
|
attr_reader :source
|
|
49
55
|
|
|
50
|
-
sig
|
|
56
|
+
sig do
|
|
57
|
+
params(
|
|
58
|
+
source:
|
|
59
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::OrSymbol
|
|
60
|
+
).void
|
|
61
|
+
end
|
|
51
62
|
attr_writer :source
|
|
52
63
|
|
|
53
64
|
sig do
|
|
@@ -56,7 +67,8 @@ module XTwitterScraper
|
|
|
56
67
|
count: Integer,
|
|
57
68
|
hours: Integer,
|
|
58
69
|
region: String,
|
|
59
|
-
source:
|
|
70
|
+
source:
|
|
71
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::OrSymbol,
|
|
60
72
|
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
61
73
|
).returns(T.attached_class)
|
|
62
74
|
end
|
|
@@ -83,13 +95,75 @@ module XTwitterScraper
|
|
|
83
95
|
count: Integer,
|
|
84
96
|
hours: Integer,
|
|
85
97
|
region: String,
|
|
86
|
-
source:
|
|
98
|
+
source:
|
|
99
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::OrSymbol,
|
|
87
100
|
request_options: XTwitterScraper::RequestOptions
|
|
88
101
|
}
|
|
89
102
|
)
|
|
90
103
|
end
|
|
91
104
|
def to_hash
|
|
92
105
|
end
|
|
106
|
+
|
|
107
|
+
# Source filter. One of: github, google_trends, hacker_news, polymarket, reddit,
|
|
108
|
+
# trustmrr, wikipedia
|
|
109
|
+
module Source
|
|
110
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
111
|
+
|
|
112
|
+
TaggedSymbol =
|
|
113
|
+
T.type_alias do
|
|
114
|
+
T.all(
|
|
115
|
+
Symbol,
|
|
116
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source
|
|
117
|
+
)
|
|
118
|
+
end
|
|
119
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
120
|
+
|
|
121
|
+
GITHUB =
|
|
122
|
+
T.let(
|
|
123
|
+
:github,
|
|
124
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::TaggedSymbol
|
|
125
|
+
)
|
|
126
|
+
GOOGLE_TRENDS =
|
|
127
|
+
T.let(
|
|
128
|
+
:google_trends,
|
|
129
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::TaggedSymbol
|
|
130
|
+
)
|
|
131
|
+
HACKER_NEWS =
|
|
132
|
+
T.let(
|
|
133
|
+
:hacker_news,
|
|
134
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::TaggedSymbol
|
|
135
|
+
)
|
|
136
|
+
POLYMARKET =
|
|
137
|
+
T.let(
|
|
138
|
+
:polymarket,
|
|
139
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::TaggedSymbol
|
|
140
|
+
)
|
|
141
|
+
REDDIT =
|
|
142
|
+
T.let(
|
|
143
|
+
:reddit,
|
|
144
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::TaggedSymbol
|
|
145
|
+
)
|
|
146
|
+
TRUSTMRR =
|
|
147
|
+
T.let(
|
|
148
|
+
:trustmrr,
|
|
149
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::TaggedSymbol
|
|
150
|
+
)
|
|
151
|
+
WIKIPEDIA =
|
|
152
|
+
T.let(
|
|
153
|
+
:wikipedia,
|
|
154
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::TaggedSymbol
|
|
155
|
+
)
|
|
156
|
+
|
|
157
|
+
sig do
|
|
158
|
+
override.returns(
|
|
159
|
+
T::Array[
|
|
160
|
+
XTwitterScraper::RadarRetrieveTrendingTopicsParams::Source::TaggedSymbol
|
|
161
|
+
]
|
|
162
|
+
)
|
|
163
|
+
end
|
|
164
|
+
def self.values
|
|
165
|
+
end
|
|
166
|
+
end
|
|
93
167
|
end
|
|
94
168
|
end
|
|
95
169
|
end
|
|
@@ -11,13 +11,7 @@ module XTwitterScraper
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig
|
|
15
|
-
returns(
|
|
16
|
-
T::Array[
|
|
17
|
-
XTwitterScraper::Models::RadarRetrieveTrendingTopicsResponse::Item
|
|
18
|
-
]
|
|
19
|
-
)
|
|
20
|
-
end
|
|
14
|
+
sig { returns(T::Array[XTwitterScraper::RadarItem]) }
|
|
21
15
|
attr_accessor :items
|
|
22
16
|
|
|
23
17
|
sig { returns(Integer) }
|
|
@@ -25,10 +19,7 @@ module XTwitterScraper
|
|
|
25
19
|
|
|
26
20
|
sig do
|
|
27
21
|
params(
|
|
28
|
-
items:
|
|
29
|
-
T::Array[
|
|
30
|
-
XTwitterScraper::Models::RadarRetrieveTrendingTopicsResponse::Item::OrHash
|
|
31
|
-
],
|
|
22
|
+
items: T::Array[XTwitterScraper::RadarItem::OrHash],
|
|
32
23
|
total: Integer
|
|
33
24
|
).returns(T.attached_class)
|
|
34
25
|
end
|
|
@@ -37,107 +28,11 @@ module XTwitterScraper
|
|
|
37
28
|
|
|
38
29
|
sig do
|
|
39
30
|
override.returns(
|
|
40
|
-
{
|
|
41
|
-
items:
|
|
42
|
-
T::Array[
|
|
43
|
-
XTwitterScraper::Models::RadarRetrieveTrendingTopicsResponse::Item
|
|
44
|
-
],
|
|
45
|
-
total: Integer
|
|
46
|
-
}
|
|
31
|
+
{ items: T::Array[XTwitterScraper::RadarItem], total: Integer }
|
|
47
32
|
)
|
|
48
33
|
end
|
|
49
34
|
def to_hash
|
|
50
35
|
end
|
|
51
|
-
|
|
52
|
-
class Item < XTwitterScraper::Internal::Type::BaseModel
|
|
53
|
-
OrHash =
|
|
54
|
-
T.type_alias do
|
|
55
|
-
T.any(
|
|
56
|
-
XTwitterScraper::Models::RadarRetrieveTrendingTopicsResponse::Item,
|
|
57
|
-
XTwitterScraper::Internal::AnyHash
|
|
58
|
-
)
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
sig { returns(String) }
|
|
62
|
-
attr_accessor :category
|
|
63
|
-
|
|
64
|
-
sig { returns(Time) }
|
|
65
|
-
attr_accessor :published_at
|
|
66
|
-
|
|
67
|
-
sig { returns(String) }
|
|
68
|
-
attr_accessor :region
|
|
69
|
-
|
|
70
|
-
sig { returns(Float) }
|
|
71
|
-
attr_accessor :score
|
|
72
|
-
|
|
73
|
-
sig { returns(String) }
|
|
74
|
-
attr_accessor :source
|
|
75
|
-
|
|
76
|
-
sig { returns(String) }
|
|
77
|
-
attr_accessor :title
|
|
78
|
-
|
|
79
|
-
sig { returns(T.nilable(String)) }
|
|
80
|
-
attr_reader :description
|
|
81
|
-
|
|
82
|
-
sig { params(description: String).void }
|
|
83
|
-
attr_writer :description
|
|
84
|
-
|
|
85
|
-
sig { returns(T.nilable(String)) }
|
|
86
|
-
attr_reader :image_url
|
|
87
|
-
|
|
88
|
-
sig { params(image_url: String).void }
|
|
89
|
-
attr_writer :image_url
|
|
90
|
-
|
|
91
|
-
sig { returns(T.nilable(String)) }
|
|
92
|
-
attr_reader :url
|
|
93
|
-
|
|
94
|
-
sig { params(url: String).void }
|
|
95
|
-
attr_writer :url
|
|
96
|
-
|
|
97
|
-
sig do
|
|
98
|
-
params(
|
|
99
|
-
category: String,
|
|
100
|
-
published_at: Time,
|
|
101
|
-
region: String,
|
|
102
|
-
score: Float,
|
|
103
|
-
source: String,
|
|
104
|
-
title: String,
|
|
105
|
-
description: String,
|
|
106
|
-
image_url: String,
|
|
107
|
-
url: String
|
|
108
|
-
).returns(T.attached_class)
|
|
109
|
-
end
|
|
110
|
-
def self.new(
|
|
111
|
-
category:,
|
|
112
|
-
published_at:,
|
|
113
|
-
region:,
|
|
114
|
-
score:,
|
|
115
|
-
source:,
|
|
116
|
-
title:,
|
|
117
|
-
description: nil,
|
|
118
|
-
image_url: nil,
|
|
119
|
-
url: nil
|
|
120
|
-
)
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
sig do
|
|
124
|
-
override.returns(
|
|
125
|
-
{
|
|
126
|
-
category: String,
|
|
127
|
-
published_at: Time,
|
|
128
|
-
region: String,
|
|
129
|
-
score: Float,
|
|
130
|
-
source: String,
|
|
131
|
-
title: String,
|
|
132
|
-
description: String,
|
|
133
|
-
image_url: String,
|
|
134
|
-
url: String
|
|
135
|
-
}
|
|
136
|
-
)
|
|
137
|
-
end
|
|
138
|
-
def to_hash
|
|
139
|
-
end
|
|
140
|
-
end
|
|
141
36
|
end
|
|
142
37
|
end
|
|
143
38
|
end
|
|
@@ -11,287 +11,44 @@ module XTwitterScraper
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
# Full style profile with sampled tweets used for tone analysis.
|
|
15
|
+
sig { returns(XTwitterScraper::StyleProfile) }
|
|
15
16
|
attr_reader :style1
|
|
16
17
|
|
|
17
|
-
sig
|
|
18
|
-
params(
|
|
19
|
-
style1: XTwitterScraper::Models::StyleCompareResponse::Style1::OrHash
|
|
20
|
-
).void
|
|
21
|
-
end
|
|
18
|
+
sig { params(style1: XTwitterScraper::StyleProfile::OrHash).void }
|
|
22
19
|
attr_writer :style1
|
|
23
20
|
|
|
24
|
-
|
|
21
|
+
# Full style profile with sampled tweets used for tone analysis.
|
|
22
|
+
sig { returns(XTwitterScraper::StyleProfile) }
|
|
25
23
|
attr_reader :style2
|
|
26
24
|
|
|
27
|
-
sig
|
|
28
|
-
params(
|
|
29
|
-
style2: XTwitterScraper::Models::StyleCompareResponse::Style2::OrHash
|
|
30
|
-
).void
|
|
31
|
-
end
|
|
25
|
+
sig { params(style2: XTwitterScraper::StyleProfile::OrHash).void }
|
|
32
26
|
attr_writer :style2
|
|
33
27
|
|
|
34
28
|
sig do
|
|
35
29
|
params(
|
|
36
|
-
style1: XTwitterScraper::
|
|
37
|
-
style2: XTwitterScraper::
|
|
30
|
+
style1: XTwitterScraper::StyleProfile::OrHash,
|
|
31
|
+
style2: XTwitterScraper::StyleProfile::OrHash
|
|
38
32
|
).returns(T.attached_class)
|
|
39
33
|
end
|
|
40
|
-
def self.new(
|
|
34
|
+
def self.new(
|
|
35
|
+
# Full style profile with sampled tweets used for tone analysis.
|
|
36
|
+
style1:,
|
|
37
|
+
# Full style profile with sampled tweets used for tone analysis.
|
|
38
|
+
style2:
|
|
39
|
+
)
|
|
41
40
|
end
|
|
42
41
|
|
|
43
42
|
sig do
|
|
44
43
|
override.returns(
|
|
45
44
|
{
|
|
46
|
-
style1: XTwitterScraper::
|
|
47
|
-
style2: XTwitterScraper::
|
|
45
|
+
style1: XTwitterScraper::StyleProfile,
|
|
46
|
+
style2: XTwitterScraper::StyleProfile
|
|
48
47
|
}
|
|
49
48
|
)
|
|
50
49
|
end
|
|
51
50
|
def to_hash
|
|
52
51
|
end
|
|
53
|
-
|
|
54
|
-
class Style1 < XTwitterScraper::Internal::Type::BaseModel
|
|
55
|
-
OrHash =
|
|
56
|
-
T.type_alias do
|
|
57
|
-
T.any(
|
|
58
|
-
XTwitterScraper::Models::StyleCompareResponse::Style1,
|
|
59
|
-
XTwitterScraper::Internal::AnyHash
|
|
60
|
-
)
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
sig { returns(Time) }
|
|
64
|
-
attr_accessor :fetched_at
|
|
65
|
-
|
|
66
|
-
sig { returns(T::Boolean) }
|
|
67
|
-
attr_accessor :is_own_account
|
|
68
|
-
|
|
69
|
-
sig { returns(Integer) }
|
|
70
|
-
attr_accessor :tweet_count
|
|
71
|
-
|
|
72
|
-
sig do
|
|
73
|
-
returns(
|
|
74
|
-
T::Array[
|
|
75
|
-
XTwitterScraper::Models::StyleCompareResponse::Style1::Tweet
|
|
76
|
-
]
|
|
77
|
-
)
|
|
78
|
-
end
|
|
79
|
-
attr_accessor :tweets
|
|
80
|
-
|
|
81
|
-
sig { returns(String) }
|
|
82
|
-
attr_accessor :x_username
|
|
83
|
-
|
|
84
|
-
sig do
|
|
85
|
-
params(
|
|
86
|
-
fetched_at: Time,
|
|
87
|
-
is_own_account: T::Boolean,
|
|
88
|
-
tweet_count: Integer,
|
|
89
|
-
tweets:
|
|
90
|
-
T::Array[
|
|
91
|
-
XTwitterScraper::Models::StyleCompareResponse::Style1::Tweet::OrHash
|
|
92
|
-
],
|
|
93
|
-
x_username: String
|
|
94
|
-
).returns(T.attached_class)
|
|
95
|
-
end
|
|
96
|
-
def self.new(
|
|
97
|
-
fetched_at:,
|
|
98
|
-
is_own_account:,
|
|
99
|
-
tweet_count:,
|
|
100
|
-
tweets:,
|
|
101
|
-
x_username:
|
|
102
|
-
)
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
sig do
|
|
106
|
-
override.returns(
|
|
107
|
-
{
|
|
108
|
-
fetched_at: Time,
|
|
109
|
-
is_own_account: T::Boolean,
|
|
110
|
-
tweet_count: Integer,
|
|
111
|
-
tweets:
|
|
112
|
-
T::Array[
|
|
113
|
-
XTwitterScraper::Models::StyleCompareResponse::Style1::Tweet
|
|
114
|
-
],
|
|
115
|
-
x_username: String
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
end
|
|
119
|
-
def to_hash
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
class Tweet < XTwitterScraper::Internal::Type::BaseModel
|
|
123
|
-
OrHash =
|
|
124
|
-
T.type_alias do
|
|
125
|
-
T.any(
|
|
126
|
-
XTwitterScraper::Models::StyleCompareResponse::Style1::Tweet,
|
|
127
|
-
XTwitterScraper::Internal::AnyHash
|
|
128
|
-
)
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
sig { returns(String) }
|
|
132
|
-
attr_accessor :id
|
|
133
|
-
|
|
134
|
-
sig { returns(String) }
|
|
135
|
-
attr_accessor :text
|
|
136
|
-
|
|
137
|
-
sig { returns(T.nilable(String)) }
|
|
138
|
-
attr_reader :author_username
|
|
139
|
-
|
|
140
|
-
sig { params(author_username: String).void }
|
|
141
|
-
attr_writer :author_username
|
|
142
|
-
|
|
143
|
-
sig { returns(T.nilable(String)) }
|
|
144
|
-
attr_reader :created_at
|
|
145
|
-
|
|
146
|
-
sig { params(created_at: String).void }
|
|
147
|
-
attr_writer :created_at
|
|
148
|
-
|
|
149
|
-
sig do
|
|
150
|
-
params(
|
|
151
|
-
id: String,
|
|
152
|
-
text: String,
|
|
153
|
-
author_username: String,
|
|
154
|
-
created_at: String
|
|
155
|
-
).returns(T.attached_class)
|
|
156
|
-
end
|
|
157
|
-
def self.new(id:, text:, author_username: nil, created_at: nil)
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
sig do
|
|
161
|
-
override.returns(
|
|
162
|
-
{
|
|
163
|
-
id: String,
|
|
164
|
-
text: String,
|
|
165
|
-
author_username: String,
|
|
166
|
-
created_at: String
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
end
|
|
170
|
-
def to_hash
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
class Style2 < XTwitterScraper::Internal::Type::BaseModel
|
|
176
|
-
OrHash =
|
|
177
|
-
T.type_alias do
|
|
178
|
-
T.any(
|
|
179
|
-
XTwitterScraper::Models::StyleCompareResponse::Style2,
|
|
180
|
-
XTwitterScraper::Internal::AnyHash
|
|
181
|
-
)
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
sig { returns(Time) }
|
|
185
|
-
attr_accessor :fetched_at
|
|
186
|
-
|
|
187
|
-
sig { returns(T::Boolean) }
|
|
188
|
-
attr_accessor :is_own_account
|
|
189
|
-
|
|
190
|
-
sig { returns(Integer) }
|
|
191
|
-
attr_accessor :tweet_count
|
|
192
|
-
|
|
193
|
-
sig do
|
|
194
|
-
returns(
|
|
195
|
-
T::Array[
|
|
196
|
-
XTwitterScraper::Models::StyleCompareResponse::Style2::Tweet
|
|
197
|
-
]
|
|
198
|
-
)
|
|
199
|
-
end
|
|
200
|
-
attr_accessor :tweets
|
|
201
|
-
|
|
202
|
-
sig { returns(String) }
|
|
203
|
-
attr_accessor :x_username
|
|
204
|
-
|
|
205
|
-
sig do
|
|
206
|
-
params(
|
|
207
|
-
fetched_at: Time,
|
|
208
|
-
is_own_account: T::Boolean,
|
|
209
|
-
tweet_count: Integer,
|
|
210
|
-
tweets:
|
|
211
|
-
T::Array[
|
|
212
|
-
XTwitterScraper::Models::StyleCompareResponse::Style2::Tweet::OrHash
|
|
213
|
-
],
|
|
214
|
-
x_username: String
|
|
215
|
-
).returns(T.attached_class)
|
|
216
|
-
end
|
|
217
|
-
def self.new(
|
|
218
|
-
fetched_at:,
|
|
219
|
-
is_own_account:,
|
|
220
|
-
tweet_count:,
|
|
221
|
-
tweets:,
|
|
222
|
-
x_username:
|
|
223
|
-
)
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
sig do
|
|
227
|
-
override.returns(
|
|
228
|
-
{
|
|
229
|
-
fetched_at: Time,
|
|
230
|
-
is_own_account: T::Boolean,
|
|
231
|
-
tweet_count: Integer,
|
|
232
|
-
tweets:
|
|
233
|
-
T::Array[
|
|
234
|
-
XTwitterScraper::Models::StyleCompareResponse::Style2::Tweet
|
|
235
|
-
],
|
|
236
|
-
x_username: String
|
|
237
|
-
}
|
|
238
|
-
)
|
|
239
|
-
end
|
|
240
|
-
def to_hash
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
class Tweet < XTwitterScraper::Internal::Type::BaseModel
|
|
244
|
-
OrHash =
|
|
245
|
-
T.type_alias do
|
|
246
|
-
T.any(
|
|
247
|
-
XTwitterScraper::Models::StyleCompareResponse::Style2::Tweet,
|
|
248
|
-
XTwitterScraper::Internal::AnyHash
|
|
249
|
-
)
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
sig { returns(String) }
|
|
253
|
-
attr_accessor :id
|
|
254
|
-
|
|
255
|
-
sig { returns(String) }
|
|
256
|
-
attr_accessor :text
|
|
257
|
-
|
|
258
|
-
sig { returns(T.nilable(String)) }
|
|
259
|
-
attr_reader :author_username
|
|
260
|
-
|
|
261
|
-
sig { params(author_username: String).void }
|
|
262
|
-
attr_writer :author_username
|
|
263
|
-
|
|
264
|
-
sig { returns(T.nilable(String)) }
|
|
265
|
-
attr_reader :created_at
|
|
266
|
-
|
|
267
|
-
sig { params(created_at: String).void }
|
|
268
|
-
attr_writer :created_at
|
|
269
|
-
|
|
270
|
-
sig do
|
|
271
|
-
params(
|
|
272
|
-
id: String,
|
|
273
|
-
text: String,
|
|
274
|
-
author_username: String,
|
|
275
|
-
created_at: String
|
|
276
|
-
).returns(T.attached_class)
|
|
277
|
-
end
|
|
278
|
-
def self.new(id:, text:, author_username: nil, created_at: nil)
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
sig do
|
|
282
|
-
override.returns(
|
|
283
|
-
{
|
|
284
|
-
id: String,
|
|
285
|
-
text: String,
|
|
286
|
-
author_username: String,
|
|
287
|
-
created_at: String
|
|
288
|
-
}
|
|
289
|
-
)
|
|
290
|
-
end
|
|
291
|
-
def to_hash
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
end
|
|
295
52
|
end
|
|
296
53
|
end
|
|
297
54
|
end
|
|
@@ -15,20 +15,20 @@ module XTwitterScraper
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
sig { returns(String) }
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :id
|
|
19
19
|
|
|
20
20
|
sig do
|
|
21
21
|
params(
|
|
22
|
-
|
|
22
|
+
id: String,
|
|
23
23
|
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
24
24
|
).returns(T.attached_class)
|
|
25
25
|
end
|
|
26
|
-
def self.new(
|
|
26
|
+
def self.new(id:, request_options: {})
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
sig do
|
|
30
30
|
override.returns(
|
|
31
|
-
{
|
|
31
|
+
{ id: String, request_options: XTwitterScraper::RequestOptions }
|
|
32
32
|
)
|
|
33
33
|
end
|
|
34
34
|
def to_hash
|
|
@@ -15,20 +15,20 @@ module XTwitterScraper
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
sig { returns(String) }
|
|
18
|
-
attr_accessor :
|
|
18
|
+
attr_accessor :id
|
|
19
19
|
|
|
20
20
|
sig do
|
|
21
21
|
params(
|
|
22
|
-
|
|
22
|
+
id: String,
|
|
23
23
|
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
24
24
|
).returns(T.attached_class)
|
|
25
25
|
end
|
|
26
|
-
def self.new(
|
|
26
|
+
def self.new(id:, request_options: {})
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
sig do
|
|
30
30
|
override.returns(
|
|
31
|
-
{
|
|
31
|
+
{ id: String, request_options: XTwitterScraper::RequestOptions }
|
|
32
32
|
)
|
|
33
33
|
end
|
|
34
34
|
def to_hash
|
|
@@ -11,15 +11,12 @@ module XTwitterScraper
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig
|
|
15
|
-
returns(T::Array[XTwitterScraper::Models::StyleListResponse::Style])
|
|
16
|
-
end
|
|
14
|
+
sig { returns(T::Array[XTwitterScraper::StyleProfileSummary]) }
|
|
17
15
|
attr_accessor :styles
|
|
18
16
|
|
|
19
17
|
sig do
|
|
20
18
|
params(
|
|
21
|
-
styles:
|
|
22
|
-
T::Array[XTwitterScraper::Models::StyleListResponse::Style::OrHash]
|
|
19
|
+
styles: T::Array[XTwitterScraper::StyleProfileSummary::OrHash]
|
|
23
20
|
).returns(T.attached_class)
|
|
24
21
|
end
|
|
25
22
|
def self.new(styles:)
|
|
@@ -27,59 +24,11 @@ module XTwitterScraper
|
|
|
27
24
|
|
|
28
25
|
sig do
|
|
29
26
|
override.returns(
|
|
30
|
-
{
|
|
31
|
-
styles: T::Array[XTwitterScraper::Models::StyleListResponse::Style]
|
|
32
|
-
}
|
|
27
|
+
{ styles: T::Array[XTwitterScraper::StyleProfileSummary] }
|
|
33
28
|
)
|
|
34
29
|
end
|
|
35
30
|
def to_hash
|
|
36
31
|
end
|
|
37
|
-
|
|
38
|
-
class Style < XTwitterScraper::Internal::Type::BaseModel
|
|
39
|
-
OrHash =
|
|
40
|
-
T.type_alias do
|
|
41
|
-
T.any(
|
|
42
|
-
XTwitterScraper::Models::StyleListResponse::Style,
|
|
43
|
-
XTwitterScraper::Internal::AnyHash
|
|
44
|
-
)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
sig { returns(Time) }
|
|
48
|
-
attr_accessor :fetched_at
|
|
49
|
-
|
|
50
|
-
sig { returns(T::Boolean) }
|
|
51
|
-
attr_accessor :is_own_account
|
|
52
|
-
|
|
53
|
-
sig { returns(Integer) }
|
|
54
|
-
attr_accessor :tweet_count
|
|
55
|
-
|
|
56
|
-
sig { returns(String) }
|
|
57
|
-
attr_accessor :x_username
|
|
58
|
-
|
|
59
|
-
sig do
|
|
60
|
-
params(
|
|
61
|
-
fetched_at: Time,
|
|
62
|
-
is_own_account: T::Boolean,
|
|
63
|
-
tweet_count: Integer,
|
|
64
|
-
x_username: String
|
|
65
|
-
).returns(T.attached_class)
|
|
66
|
-
end
|
|
67
|
-
def self.new(fetched_at:, is_own_account:, tweet_count:, x_username:)
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
sig do
|
|
71
|
-
override.returns(
|
|
72
|
-
{
|
|
73
|
-
fetched_at: Time,
|
|
74
|
-
is_own_account: T::Boolean,
|
|
75
|
-
tweet_count: Integer,
|
|
76
|
-
x_username: String
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
end
|
|
80
|
-
def to_hash
|
|
81
|
-
end
|
|
82
|
-
end
|
|
83
32
|
end
|
|
84
33
|
end
|
|
85
34
|
end
|