x-twitter-scraper 0.11.0 → 0.12.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 +31 -0
- data/README.md +1 -1
- data/lib/x_twitter_scraper/client.rb +4 -0
- data/lib/x_twitter_scraper/internal/stream.rb +34 -0
- data/lib/x_twitter_scraper/internal/type/base_model.rb +2 -0
- data/lib/x_twitter_scraper/internal/type/converter.rb +2 -0
- data/lib/x_twitter_scraper/internal/type/union.rb +6 -2
- data/lib/x_twitter_scraper/models/activity_export_params.rb +113 -0
- data/lib/x_twitter_scraper/models/activity_list_params.rb +107 -0
- data/lib/x_twitter_scraper/models/activity_list_response.rb +13 -0
- data/lib/x_twitter_scraper/models/activity_log_row.rb +123 -0
- data/lib/x_twitter_scraper/models/activity_record.rb +489 -0
- data/lib/x_twitter_scraper/models/activity_retrieve_params.rb +27 -0
- data/lib/x_twitter_scraper/models/audited_follower.rb +114 -0
- data/lib/x_twitter_scraper/models/batch_user_tweets.rb +84 -0
- data/lib/x_twitter_scraper/models/broadcast.rb +261 -0
- data/lib/x_twitter_scraper/models/community.rb +957 -0
- data/lib/x_twitter_scraper/models/community_analytics.rb +89 -0
- data/lib/x_twitter_scraper/models/community_analytics_metric.rb +30 -0
- data/lib/x_twitter_scraper/models/community_banner.rb +126 -0
- data/lib/x_twitter_scraper/models/community_member_preview.rb +38 -0
- data/lib/x_twitter_scraper/models/community_note.rb +257 -0
- data/lib/x_twitter_scraper/models/community_note_entity.rb +83 -0
- data/lib/x_twitter_scraper/models/community_notes_contributor.rb +64 -0
- data/lib/x_twitter_scraper/models/community_notes_note_counts.rb +46 -0
- data/lib/x_twitter_scraper/models/community_notes_rating_counts.rb +54 -0
- data/lib/x_twitter_scraper/models/community_notes_rating_outcome.rb +38 -0
- data/lib/x_twitter_scraper/models/community_page.rb +38 -0
- data/lib/x_twitter_scraper/models/community_topic.rb +57 -0
- data/lib/x_twitter_scraper/models/event_stream_params.rb +55 -0
- data/lib/x_twitter_scraper/models/extraction_cancel_params.rb +27 -0
- data/lib/x_twitter_scraper/models/extraction_cancel_response.rb +27 -0
- data/lib/x_twitter_scraper/models/follower_audit.rb +300 -0
- data/lib/x_twitter_scraper/models/follower_class.rb +23 -0
- data/lib/x_twitter_scraper/models/follower_value_count.rb +35 -0
- data/lib/x_twitter_scraper/models/football_box_score.rb +73 -0
- data/lib/x_twitter_scraper/models/football_drive.rb +122 -0
- data/lib/x_twitter_scraper/models/football_fumble_stats.rb +38 -0
- data/lib/x_twitter_scraper/models/football_odds.rb +38 -0
- data/lib/x_twitter_scraper/models/football_passing_stats.rb +94 -0
- data/lib/x_twitter_scraper/models/football_period.rb +54 -0
- data/lib/x_twitter_scraper/models/football_play.rb +279 -0
- data/lib/x_twitter_scraper/models/football_play_detail.rb +134 -0
- data/lib/x_twitter_scraper/models/football_player.rb +196 -0
- data/lib/x_twitter_scraper/models/football_player_prop.rb +66 -0
- data/lib/x_twitter_scraper/models/football_player_stats.rb +372 -0
- data/lib/x_twitter_scraper/models/football_plays.rb +81 -0
- data/lib/x_twitter_scraper/models/football_prop_category.rb +46 -0
- data/lib/x_twitter_scraper/models/football_props.rb +66 -0
- data/lib/x_twitter_scraper/models/football_quarter.rb +46 -0
- data/lib/x_twitter_scraper/models/football_return_stats.rb +54 -0
- data/lib/x_twitter_scraper/models/football_roster.rb +65 -0
- data/lib/x_twitter_scraper/models/football_roster_team.rb +30 -0
- data/lib/x_twitter_scraper/models/football_rushing_stats.rb +54 -0
- data/lib/x_twitter_scraper/models/football_schedule.rb +49 -0
- data/lib/x_twitter_scraper/models/football_schedule_game.rb +131 -0
- data/lib/x_twitter_scraper/models/football_schedule_period.rb +22 -0
- data/lib/x_twitter_scraper/models/football_scoreboard.rb +209 -0
- data/lib/x_twitter_scraper/models/football_side.rb +38 -0
- data/lib/x_twitter_scraper/models/football_team_box.rb +38 -0
- data/lib/x_twitter_scraper/models/football_team_score.rb +30 -0
- data/lib/x_twitter_scraper/models/football_team_totals.rb +128 -0
- data/lib/x_twitter_scraper/models/hashflag.rb +89 -0
- data/lib/x_twitter_scraper/models/job.rb +194 -0
- data/lib/x_twitter_scraper/models/job_account.rb +87 -0
- data/lib/x_twitter_scraper/models/job_company.rb +38 -0
- data/lib/x_twitter_scraper/models/job_location.rb +30 -0
- data/lib/x_twitter_scraper/models/job_locations.rb +30 -0
- data/lib/x_twitter_scraper/models/monitor_upsert_by_username_params.rb +44 -0
- data/lib/x_twitter_scraper/models/monitor_upsert_by_username_response.rb +116 -0
- data/lib/x_twitter_scraper/models/monitors/post_create_params.rb +55 -0
- data/lib/x_twitter_scraper/models/monitors/post_delete_params.rb +28 -0
- data/lib/x_twitter_scraper/models/monitors/post_delete_response.rb +37 -0
- data/lib/x_twitter_scraper/models/monitors/post_list_params.rb +38 -0
- data/lib/x_twitter_scraper/models/monitors/post_list_response.rb +44 -0
- data/lib/x_twitter_scraper/models/monitors/post_retrieve_metrics_params.rb +36 -0
- data/lib/x_twitter_scraper/models/monitors/post_retrieve_params.rb +28 -0
- data/lib/x_twitter_scraper/models/monitors/post_update_params.rb +52 -0
- data/lib/x_twitter_scraper/models/news_version.rb +46 -0
- data/lib/x_twitter_scraper/models/paginated_community_notes.rb +37 -0
- data/lib/x_twitter_scraper/models/paginated_jobs.rb +37 -0
- data/lib/x_twitter_scraper/models/paginated_lists.rb +37 -0
- data/lib/x_twitter_scraper/models/paginated_user_ids.rb +38 -0
- data/lib/x_twitter_scraper/models/place.rb +116 -0
- data/lib/x_twitter_scraper/models/place_search_result.rb +124 -0
- data/lib/x_twitter_scraper/models/post_engagement_metrics.rb +62 -0
- data/lib/x_twitter_scraper/models/post_event_type.rb +31 -0
- data/lib/x_twitter_scraper/models/post_metric_point.rb +29 -0
- data/lib/x_twitter_scraper/models/post_metric_reading.rb +29 -0
- data/lib/x_twitter_scraper/models/post_metrics.rb +68 -0
- data/lib/x_twitter_scraper/models/post_monitor.rb +322 -0
- data/lib/x_twitter_scraper/models/post_monitor_metrics.rb +103 -0
- data/lib/x_twitter_scraper/models/profile_translation.rb +64 -0
- data/lib/x_twitter_scraper/models/resolved_link.rb +31 -0
- data/lib/x_twitter_scraper/models/search_suggestion_cashtag.rb +102 -0
- data/lib/x_twitter_scraper/models/search_suggestion_hashtag.rb +46 -0
- data/lib/x_twitter_scraper/models/search_suggestion_topic.rb +46 -0
- data/lib/x_twitter_scraper/models/search_suggestion_user.rb +174 -0
- data/lib/x_twitter_scraper/models/search_suggestions.rb +63 -0
- data/lib/x_twitter_scraper/models/shadowban_report.rb +833 -0
- data/lib/x_twitter_scraper/models/shadowban_verdict.rb +22 -0
- data/lib/x_twitter_scraper/models/space.rb +254 -0
- data/lib/x_twitter_scraper/models/space_participant.rb +116 -0
- data/lib/x_twitter_scraper/models/space_sharing.rb +54 -0
- data/lib/x_twitter_scraper/models/sports_game_audience.rb +195 -0
- data/lib/x_twitter_scraper/models/sports_game_posts.rb +152 -0
- data/lib/x_twitter_scraper/models/sports_team.rb +192 -0
- data/lib/x_twitter_scraper/models/sports_team_game.rb +78 -0
- data/lib/x_twitter_scraper/models/subtitle_track.rb +106 -0
- data/lib/x_twitter_scraper/models/trend_location.rb +77 -0
- data/lib/x_twitter_scraper/models/tweet_embed.rb +71 -0
- data/lib/x_twitter_scraper/models/tweet_entities.rb +56 -0
- data/lib/x_twitter_scraper/models/tweet_hashtag.rb +36 -0
- data/lib/x_twitter_scraper/models/tweet_insights.rb +111 -0
- data/lib/x_twitter_scraper/models/tweet_smart_tag.rb +64 -0
- data/lib/x_twitter_scraper/models/tweet_subtitles.rb +30 -0
- data/lib/x_twitter_scraper/models/tweet_symbol.rb +43 -0
- data/lib/x_twitter_scraper/models/tweet_translation.rb +56 -0
- data/lib/x_twitter_scraper/models/tweet_url_entity.rb +42 -0
- data/lib/x_twitter_scraper/models/tweet_user_mention.rb +42 -0
- data/lib/x_twitter_scraper/models/user_affiliate_label.rb +75 -0
- data/lib/x_twitter_scraper/models/user_auxiliary_label.rb +49 -0
- data/lib/x_twitter_scraper/models/user_highlights_info.rb +28 -0
- data/lib/x_twitter_scraper/models/user_identity_verification.rb +45 -0
- data/lib/x_twitter_scraper/models/user_insights.rb +229 -0
- data/lib/x_twitter_scraper/models/user_live_status.rb +48 -0
- data/lib/x_twitter_scraper/models/webhook_create_telegram_link_params.rb +26 -0
- data/lib/x_twitter_scraper/models/webhook_create_telegram_link_response.rb +29 -0
- data/lib/x_twitter_scraper/models/x/broadcast_retrieve_params.rb +53 -0
- data/lib/x_twitter_scraper/models/x/broadcast_retrieve_response.rb +23 -0
- data/lib/x_twitter_scraper/models/x/communities/media_list_params.rb +414 -0
- data/lib/x_twitter_scraper/models/x/community_find_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/community_list_popular_params.rb +81 -0
- data/lib/x_twitter_scraper/models/x/community_list_suggested_params.rb +54 -0
- data/lib/x_twitter_scraper/models/x/community_list_suggested_response.rb +39 -0
- data/lib/x_twitter_scraper/models/x/community_list_topics_params.rb +54 -0
- data/lib/x_twitter_scraper/models/x/community_list_topics_response.rb +39 -0
- data/lib/x_twitter_scraper/models/x/community_note_list_contributor_deleted_notes_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/community_note_list_contributor_notes_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/community_note_retrieve_contributor_params.rb +53 -0
- data/lib/x_twitter_scraper/models/x/community_note_retrieve_contributor_response.rb +25 -0
- data/lib/x_twitter_scraper/models/x/community_retrieve_analytics_params.rb +54 -0
- data/lib/x_twitter_scraper/models/x/community_search_members_params.rb +209 -0
- data/lib/x_twitter_scraper/models/x/dm_delete_message_params.rb +71 -0
- data/lib/x_twitter_scraper/models/x/job_list_locations_params.rb +62 -0
- data/lib/x_twitter_scraper/models/x/job_retrieve_params.rb +53 -0
- data/lib/x_twitter_scraper/models/x/job_retrieve_response.rb +25 -0
- data/lib/x_twitter_scraper/models/x/job_search_params.rb +127 -0
- data/lib/x_twitter_scraper/models/x/list_retrieve_params.rb +52 -0
- data/lib/x_twitter_scraper/models/x/list_retrieve_response.rb +23 -0
- data/lib/x_twitter_scraper/models/x/list_retrieve_search_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/space_retrieve_params.rb +52 -0
- data/lib/x_twitter_scraper/models/x/space_retrieve_replay_params.rb +52 -0
- data/lib/x_twitter_scraper/models/x/space_retrieve_replay_response.rb +52 -0
- data/lib/x_twitter_scraper/models/x/space_retrieve_response.rb +23 -0
- data/lib/x_twitter_scraper/models/x/space_search_params.rb +96 -0
- data/lib/x_twitter_scraper/models/x/space_search_response.rb +39 -0
- data/lib/x_twitter_scraper/models/x/sport_list_games_params.rb +91 -0
- data/lib/x_twitter_scraper/models/x/sport_list_posts_params.rb +112 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_audience_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_box_score_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_player_props_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_plays_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_roster_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_scoreboard_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/tweet_check_repost_params.rb +59 -0
- data/lib/x_twitter_scraper/models/x/tweet_check_repost_response.rb +69 -0
- data/lib/x_twitter_scraper/models/x/tweet_embed_params.rb +98 -0
- data/lib/x_twitter_scraper/models/x/tweet_embed_response.rb +23 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_hidden_replies_params.rb +412 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_insights_params.rb +55 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_insights_response.rb +24 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeter_ids_params.rb +51 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_subtitles_params.rb +55 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_subtitles_response.rb +23 -0
- data/lib/x_twitter_scraper/models/x/tweet_list_top_params.rb +124 -0
- data/lib/x_twitter_scraper/models/x/tweet_resolve_links_params.rb +54 -0
- data/lib/x_twitter_scraper/models/x/tweet_resolve_links_response.rb +33 -0
- data/lib/x_twitter_scraper/models/x/tweet_translate_params.rb +64 -0
- data/lib/x_twitter_scraper/models/x/tweet_translate_response.rb +25 -0
- data/lib/x_twitter_scraper/models/x/tweets/bookmark_create_params.rb +66 -0
- data/lib/x_twitter_scraper/models/x/tweets/bookmark_delete_params.rb +66 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_affiliates_params.rb +217 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_articles_params.rb +412 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_batch_response.rb +18 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_batch_tweets_params.rb +74 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_follower_audit_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_follower_audit_response.rb +24 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_follower_ids_params.rb +46 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_following_ids_params.rb +46 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_highlights_params.rb +412 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_insights_params.rb +66 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_insights_response.rb +33 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_list_memberships_params.rb +71 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_lists_params.rb +71 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_live_params.rb +54 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_shadowban_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_similar_params.rb +217 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_subscriptions_params.rb +217 -0
- data/lib/x_twitter_scraper/models/x/user_translate_bio_params.rb +63 -0
- data/lib/x_twitter_scraper/models/x/user_translate_bio_response.rb +31 -0
- data/lib/x_twitter_scraper/models/x/users/block_create_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x/users/block_delete_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x/users/mute_create_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x/users/mute_delete_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x_autocomplete_search_params.rb +73 -0
- data/lib/x_twitter_scraper/models/x_get_hashflags_params.rb +69 -0
- data/lib/x_twitter_scraper/models/x_get_hashflags_response.rb +44 -0
- data/lib/x_twitter_scraper/models/x_get_news_story_versions_params.rb +51 -0
- data/lib/x_twitter_scraper/models/x_get_news_story_versions_response.rb +36 -0
- data/lib/x_twitter_scraper/models/x_get_trend_locations_params.rb +91 -0
- data/lib/x_twitter_scraper/models/x_get_trend_locations_response.rb +44 -0
- data/lib/x_twitter_scraper/models/x_get_trends_history_params.rb +129 -0
- data/lib/x_twitter_scraper/models/x_get_trends_history_response.rb +161 -0
- data/lib/x_twitter_scraper/models/x_list.rb +118 -0
- data/lib/x_twitter_scraper/models/x_list_banner.rb +152 -0
- data/lib/x_twitter_scraper/models/x_search_places_params.rb +61 -0
- data/lib/x_twitter_scraper/models/x_search_places_response.rb +44 -0
- data/lib/x_twitter_scraper/models.rb +234 -0
- data/lib/x_twitter_scraper/resources/activity.rb +122 -0
- data/lib/x_twitter_scraper/resources/events.rb +42 -0
- data/lib/x_twitter_scraper/resources/extractions.rb +20 -0
- data/lib/x_twitter_scraper/resources/monitors/posts.rb +175 -0
- data/lib/x_twitter_scraper/resources/monitors.rb +35 -0
- data/lib/x_twitter_scraper/resources/webhooks.rb +28 -0
- data/lib/x_twitter_scraper/resources/x/broadcasts.rb +49 -0
- data/lib/x_twitter_scraper/resources/x/communities/media.rb +126 -0
- data/lib/x_twitter_scraper/resources/x/communities.rb +226 -0
- data/lib/x_twitter_scraper/resources/x/community_notes.rb +115 -0
- data/lib/x_twitter_scraper/resources/x/dm.rb +38 -0
- data/lib/x_twitter_scraper/resources/x/jobs.rb +124 -0
- data/lib/x_twitter_scraper/resources/x/lists.rb +62 -0
- data/lib/x_twitter_scraper/resources/x/spaces.rb +114 -0
- data/lib/x_twitter_scraper/resources/x/sports.rb +296 -0
- data/lib/x_twitter_scraper/resources/x/tweets/bookmark.rb +83 -0
- data/lib/x_twitter_scraper/resources/x/tweets.rb +363 -0
- data/lib/x_twitter_scraper/resources/x/users/block.rb +83 -0
- data/lib/x_twitter_scraper/resources/x/users/mute.rb +83 -0
- data/lib/x_twitter_scraper/resources/x/users.rb +743 -0
- data/lib/x_twitter_scraper/resources/x.rb +234 -0
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/lib/x_twitter_scraper.rb +222 -0
- data/rbi/x_twitter_scraper/client.rbi +3 -0
- data/rbi/x_twitter_scraper/internal/stream.rbi +38 -0
- data/rbi/x_twitter_scraper/models/activity_export_params.rbi +236 -0
- data/rbi/x_twitter_scraper/models/activity_list_params.rbi +206 -0
- data/rbi/x_twitter_scraper/models/activity_list_response.rbi +17 -0
- data/rbi/x_twitter_scraper/models/activity_log_row.rbi +150 -0
- data/rbi/x_twitter_scraper/models/activity_record.rbi +1008 -0
- data/rbi/x_twitter_scraper/models/activity_retrieve_params.rbi +49 -0
- data/rbi/x_twitter_scraper/models/audited_follower.rbi +138 -0
- data/rbi/x_twitter_scraper/models/batch_user_tweets.rbi +115 -0
- data/rbi/x_twitter_scraper/models/broadcast.rbi +398 -0
- data/rbi/x_twitter_scraper/models/community.rbi +1492 -0
- data/rbi/x_twitter_scraper/models/community_analytics.rbi +179 -0
- data/rbi/x_twitter_scraper/models/community_analytics_metric.rbi +42 -0
- data/rbi/x_twitter_scraper/models/community_banner.rbi +224 -0
- data/rbi/x_twitter_scraper/models/community_member_preview.rbi +66 -0
- data/rbi/x_twitter_scraper/models/community_note.rbi +407 -0
- data/rbi/x_twitter_scraper/models/community_note_entity.rbi +157 -0
- data/rbi/x_twitter_scraper/models/community_notes_contributor.rbi +114 -0
- data/rbi/x_twitter_scraper/models/community_notes_note_counts.rbi +80 -0
- data/rbi/x_twitter_scraper/models/community_notes_rating_counts.rbi +107 -0
- data/rbi/x_twitter_scraper/models/community_notes_rating_outcome.rbi +65 -0
- data/rbi/x_twitter_scraper/models/community_page.rbi +67 -0
- data/rbi/x_twitter_scraper/models/community_topic.rbi +103 -0
- data/rbi/x_twitter_scraper/models/event_stream_params.rbi +121 -0
- data/rbi/x_twitter_scraper/models/extraction_cancel_params.rbi +49 -0
- data/rbi/x_twitter_scraper/models/extraction_cancel_response.rbi +33 -0
- data/rbi/x_twitter_scraper/models/follower_audit.rbi +565 -0
- data/rbi/x_twitter_scraper/models/follower_class.rbi +37 -0
- data/rbi/x_twitter_scraper/models/follower_value_count.rbi +42 -0
- data/rbi/x_twitter_scraper/models/football_box_score.rbi +152 -0
- data/rbi/x_twitter_scraper/models/football_drive.rbi +155 -0
- data/rbi/x_twitter_scraper/models/football_fumble_stats.rbi +60 -0
- data/rbi/x_twitter_scraper/models/football_odds.rbi +60 -0
- data/rbi/x_twitter_scraper/models/football_passing_stats.rbi +116 -0
- data/rbi/x_twitter_scraper/models/football_period.rbi +76 -0
- data/rbi/x_twitter_scraper/models/football_play.rbi +420 -0
- data/rbi/x_twitter_scraper/models/football_play_detail.rbi +231 -0
- data/rbi/x_twitter_scraper/models/football_player.rbi +276 -0
- data/rbi/x_twitter_scraper/models/football_player_prop.rbi +86 -0
- data/rbi/x_twitter_scraper/models/football_player_stats.rbi +643 -0
- data/rbi/x_twitter_scraper/models/football_plays.rbi +157 -0
- data/rbi/x_twitter_scraper/models/football_prop_category.rbi +75 -0
- data/rbi/x_twitter_scraper/models/football_props.rbi +135 -0
- data/rbi/x_twitter_scraper/models/football_quarter.rbi +75 -0
- data/rbi/x_twitter_scraper/models/football_return_stats.rbi +76 -0
- data/rbi/x_twitter_scraper/models/football_roster.rbi +139 -0
- data/rbi/x_twitter_scraper/models/football_roster_team.rbi +46 -0
- data/rbi/x_twitter_scraper/models/football_rushing_stats.rbi +76 -0
- data/rbi/x_twitter_scraper/models/football_schedule.rbi +117 -0
- data/rbi/x_twitter_scraper/models/football_schedule_game.rbi +215 -0
- data/rbi/x_twitter_scraper/models/football_schedule_period.rbi +34 -0
- data/rbi/x_twitter_scraper/models/football_scoreboard.rbi +343 -0
- data/rbi/x_twitter_scraper/models/football_side.rbi +60 -0
- data/rbi/x_twitter_scraper/models/football_team_box.rbi +77 -0
- data/rbi/x_twitter_scraper/models/football_team_score.rbi +48 -0
- data/rbi/x_twitter_scraper/models/football_team_totals.rbi +252 -0
- data/rbi/x_twitter_scraper/models/hashflag.rbi +144 -0
- data/rbi/x_twitter_scraper/models/job.rbi +276 -0
- data/rbi/x_twitter_scraper/models/job_account.rbi +129 -0
- data/rbi/x_twitter_scraper/models/job_company.rbi +56 -0
- data/rbi/x_twitter_scraper/models/job_location.rbi +40 -0
- data/rbi/x_twitter_scraper/models/job_locations.rbi +59 -0
- data/rbi/x_twitter_scraper/models/monitor_upsert_by_username_params.rbi +83 -0
- data/rbi/x_twitter_scraper/models/monitor_upsert_by_username_response.rbi +195 -0
- data/rbi/x_twitter_scraper/models/monitors/post_create_params.rbi +104 -0
- data/rbi/x_twitter_scraper/models/monitors/post_delete_params.rbi +49 -0
- data/rbi/x_twitter_scraper/models/monitors/post_delete_response.rbi +54 -0
- data/rbi/x_twitter_scraper/models/monitors/post_list_params.rbi +70 -0
- data/rbi/x_twitter_scraper/models/monitors/post_list_response.rbi +74 -0
- data/rbi/x_twitter_scraper/models/monitors/post_retrieve_metrics_params.rbi +63 -0
- data/rbi/x_twitter_scraper/models/monitors/post_retrieve_params.rbi +49 -0
- data/rbi/x_twitter_scraper/models/monitors/post_update_params.rbi +98 -0
- data/rbi/x_twitter_scraper/models/news_version.rbi +63 -0
- data/rbi/x_twitter_scraper/models/paginated_community_notes.rbi +63 -0
- data/rbi/x_twitter_scraper/models/paginated_jobs.rbi +59 -0
- data/rbi/x_twitter_scraper/models/paginated_lists.rbi +61 -0
- data/rbi/x_twitter_scraper/models/paginated_user_ids.rbi +58 -0
- data/rbi/x_twitter_scraper/models/place.rbi +166 -0
- data/rbi/x_twitter_scraper/models/place_search_result.rbi +191 -0
- data/rbi/x_twitter_scraper/models/post_engagement_metrics.rbi +84 -0
- data/rbi/x_twitter_scraper/models/post_event_type.rbi +80 -0
- data/rbi/x_twitter_scraper/models/post_metric_point.rbi +41 -0
- data/rbi/x_twitter_scraper/models/post_metric_reading.rbi +41 -0
- data/rbi/x_twitter_scraper/models/post_metrics.rbi +130 -0
- data/rbi/x_twitter_scraper/models/post_monitor.rbi +573 -0
- data/rbi/x_twitter_scraper/models/post_monitor_metrics.rbi +239 -0
- data/rbi/x_twitter_scraper/models/profile_translation.rbi +92 -0
- data/rbi/x_twitter_scraper/models/resolved_link.rbi +47 -0
- data/rbi/x_twitter_scraper/models/search_suggestion_cashtag.rbi +154 -0
- data/rbi/x_twitter_scraper/models/search_suggestion_hashtag.rbi +77 -0
- data/rbi/x_twitter_scraper/models/search_suggestion_topic.rbi +77 -0
- data/rbi/x_twitter_scraper/models/search_suggestion_user.rbi +278 -0
- data/rbi/x_twitter_scraper/models/search_suggestions.rbi +125 -0
- data/rbi/x_twitter_scraper/models/shadowban_report.rbi +2216 -0
- data/rbi/x_twitter_scraper/models/shadowban_verdict.rbi +36 -0
- data/rbi/x_twitter_scraper/models/space.rbi +375 -0
- data/rbi/x_twitter_scraper/models/space_participant.rbi +173 -0
- data/rbi/x_twitter_scraper/models/space_sharing.rbi +93 -0
- data/rbi/x_twitter_scraper/models/sports_game_audience.rbi +428 -0
- data/rbi/x_twitter_scraper/models/sports_game_posts.rbi +284 -0
- data/rbi/x_twitter_scraper/models/sports_team.rbi +314 -0
- data/rbi/x_twitter_scraper/models/sports_team_game.rbi +110 -0
- data/rbi/x_twitter_scraper/models/subtitle_track.rbi +161 -0
- data/rbi/x_twitter_scraper/models/trend_location.rbi +98 -0
- data/rbi/x_twitter_scraper/models/tweet_embed.rbi +100 -0
- data/rbi/x_twitter_scraper/models/tweet_entities.rbi +122 -0
- data/rbi/x_twitter_scraper/models/tweet_hashtag.rbi +62 -0
- data/rbi/x_twitter_scraper/models/tweet_insights.rbi +139 -0
- data/rbi/x_twitter_scraper/models/tweet_smart_tag.rbi +143 -0
- data/rbi/x_twitter_scraper/models/tweet_subtitles.rbi +59 -0
- data/rbi/x_twitter_scraper/models/tweet_symbol.rbi +74 -0
- data/rbi/x_twitter_scraper/models/tweet_translation.rbi +84 -0
- data/rbi/x_twitter_scraper/models/tweet_url_entity.rbi +67 -0
- data/rbi/x_twitter_scraper/models/tweet_user_mention.rbi +64 -0
- data/rbi/x_twitter_scraper/models/user_affiliate_label.rbi +125 -0
- data/rbi/x_twitter_scraper/models/user_auxiliary_label.rbi +81 -0
- data/rbi/x_twitter_scraper/models/user_highlights_info.rbi +48 -0
- data/rbi/x_twitter_scraper/models/user_identity_verification.rbi +78 -0
- data/rbi/x_twitter_scraper/models/user_insights.rbi +315 -0
- data/rbi/x_twitter_scraper/models/user_live_status.rbi +77 -0
- data/rbi/x_twitter_scraper/models/webhook_create_telegram_link_params.rbi +62 -0
- data/rbi/x_twitter_scraper/models/webhook_create_telegram_link_response.rbi +40 -0
- data/rbi/x_twitter_scraper/models/x/broadcast_retrieve_params.rbi +92 -0
- data/rbi/x_twitter_scraper/models/x/broadcast_retrieve_response.rbi +47 -0
- data/rbi/x_twitter_scraper/models/x/communities/media_list_params.rbi +751 -0
- data/rbi/x_twitter_scraper/models/x/community_find_params.rbi +120 -0
- data/rbi/x_twitter_scraper/models/x/community_list_popular_params.rbi +136 -0
- data/rbi/x_twitter_scraper/models/x/community_list_suggested_params.rbi +97 -0
- data/rbi/x_twitter_scraper/models/x/community_list_suggested_response.rbi +72 -0
- data/rbi/x_twitter_scraper/models/x/community_list_topics_params.rbi +97 -0
- data/rbi/x_twitter_scraper/models/x/community_list_topics_response.rbi +72 -0
- data/rbi/x_twitter_scraper/models/x/community_note_list_contributor_deleted_notes_params.rbi +120 -0
- data/rbi/x_twitter_scraper/models/x/community_note_list_contributor_notes_params.rbi +120 -0
- data/rbi/x_twitter_scraper/models/x/community_note_retrieve_contributor_params.rbi +92 -0
- data/rbi/x_twitter_scraper/models/x/community_note_retrieve_contributor_response.rbi +57 -0
- data/rbi/x_twitter_scraper/models/x/community_retrieve_analytics_params.rbi +94 -0
- data/rbi/x_twitter_scraper/models/x/community_search_members_params.rbi +306 -0
- data/rbi/x_twitter_scraper/models/x/dm_delete_message_params.rbi +109 -0
- data/rbi/x_twitter_scraper/models/x/job_list_locations_params.rbi +105 -0
- data/rbi/x_twitter_scraper/models/x/job_retrieve_params.rbi +92 -0
- data/rbi/x_twitter_scraper/models/x/job_retrieve_response.rbi +47 -0
- data/rbi/x_twitter_scraper/models/x/job_search_params.rbi +200 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_params.rbi +90 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_response.rbi +43 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_search_params.rbi +120 -0
- data/rbi/x_twitter_scraper/models/x/space_retrieve_params.rbi +90 -0
- data/rbi/x_twitter_scraper/models/x/space_retrieve_replay_params.rbi +90 -0
- data/rbi/x_twitter_scraper/models/x/space_retrieve_replay_response.rbi +111 -0
- data/rbi/x_twitter_scraper/models/x/space_retrieve_response.rbi +43 -0
- data/rbi/x_twitter_scraper/models/x/space_search_params.rbi +196 -0
- data/rbi/x_twitter_scraper/models/x/space_search_response.rbi +67 -0
- data/rbi/x_twitter_scraper/models/x/sport_list_games_params.rbi +181 -0
- data/rbi/x_twitter_scraper/models/x/sport_list_posts_params.rbi +242 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_audience_params.rbi +150 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_box_score_params.rbi +150 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_player_props_params.rbi +147 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_plays_params.rbi +150 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_roster_params.rbi +147 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_scoreboard_params.rbi +150 -0
- data/rbi/x_twitter_scraper/models/x/tweet_check_repost_params.rbi +96 -0
- data/rbi/x_twitter_scraper/models/x/tweet_check_repost_response.rbi +90 -0
- data/rbi/x_twitter_scraper/models/x/tweet_embed_params.rbi +185 -0
- data/rbi/x_twitter_scraper/models/x/tweet_embed_response.rbi +43 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_hidden_replies_params.rbi +749 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_insights_params.rbi +96 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_insights_response.rbi +49 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeter_ids_params.rbi +88 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_subtitles_params.rbi +96 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_subtitles_response.rbi +51 -0
- data/rbi/x_twitter_scraper/models/x/tweet_list_top_params.rbi +281 -0
- data/rbi/x_twitter_scraper/models/x/tweet_resolve_links_params.rbi +94 -0
- data/rbi/x_twitter_scraper/models/x/tweet_resolve_links_response.rbi +61 -0
- data/rbi/x_twitter_scraper/models/x/tweet_translate_params.rbi +106 -0
- data/rbi/x_twitter_scraper/models/x/tweet_translate_response.rbi +55 -0
- data/rbi/x_twitter_scraper/models/x/tweets/bookmark_create_params.rbi +105 -0
- data/rbi/x_twitter_scraper/models/x/tweets/bookmark_delete_params.rbi +105 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_affiliates_params.rbi +320 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_articles_params.rbi +749 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_batch_response.rbi +18 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_batch_tweets_params.rbi +127 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_follower_audit_params.rbi +111 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_follower_audit_response.rbi +49 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_follower_ids_params.rbi +78 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_following_ids_params.rbi +78 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_highlights_params.rbi +749 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_insights_params.rbi +113 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_insights_response.rbi +63 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_list_memberships_params.rbi +118 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_lists_params.rbi +118 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_live_params.rbi +94 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_shadowban_params.rbi +111 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_similar_params.rbi +320 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_subscriptions_params.rbi +320 -0
- data/rbi/x_twitter_scraper/models/x/user_translate_bio_params.rbi +104 -0
- data/rbi/x_twitter_scraper/models/x/user_translate_bio_response.rbi +67 -0
- data/rbi/x_twitter_scraper/models/x/users/block_create_params.rbi +103 -0
- data/rbi/x_twitter_scraper/models/x/users/block_delete_params.rbi +103 -0
- data/rbi/x_twitter_scraper/models/x/users/mute_create_params.rbi +103 -0
- data/rbi/x_twitter_scraper/models/x/users/mute_delete_params.rbi +103 -0
- data/rbi/x_twitter_scraper/models/x_autocomplete_search_params.rbi +124 -0
- data/rbi/x_twitter_scraper/models/x_get_hashflags_params.rbi +119 -0
- data/rbi/x_twitter_scraper/models/x_get_hashflags_response.rbi +76 -0
- data/rbi/x_twitter_scraper/models/x_get_news_story_versions_params.rbi +90 -0
- data/rbi/x_twitter_scraper/models/x_get_news_story_versions_response.rbi +65 -0
- data/rbi/x_twitter_scraper/models/x_get_trend_locations_params.rbi +191 -0
- data/rbi/x_twitter_scraper/models/x_get_trend_locations_response.rbi +76 -0
- data/rbi/x_twitter_scraper/models/x_get_trends_history_params.rbi +209 -0
- data/rbi/x_twitter_scraper/models/x_get_trends_history_response.rbi +295 -0
- data/rbi/x_twitter_scraper/models/x_list.rbi +179 -0
- data/rbi/x_twitter_scraper/models/x_list_banner.rbi +291 -0
- data/rbi/x_twitter_scraper/models/x_search_places_params.rbi +105 -0
- data/rbi/x_twitter_scraper/models/x_search_places_response.rbi +76 -0
- data/rbi/x_twitter_scraper/models.rbi +239 -0
- data/rbi/x_twitter_scraper/resources/activity.rbi +114 -0
- data/rbi/x_twitter_scraper/resources/events.rbi +36 -0
- data/rbi/x_twitter_scraper/resources/extractions.rbi +15 -0
- data/rbi/x_twitter_scraper/resources/monitors/posts.rbi +144 -0
- data/rbi/x_twitter_scraper/resources/monitors.rbi +30 -0
- data/rbi/x_twitter_scraper/resources/webhooks.rbi +20 -0
- data/rbi/x_twitter_scraper/resources/x/broadcasts.rbi +51 -0
- data/rbi/x_twitter_scraper/resources/x/communities/media.rbi +178 -0
- data/rbi/x_twitter_scraper/resources/x/communities.rbi +275 -0
- data/rbi/x_twitter_scraper/resources/x/community_notes.rbi +133 -0
- data/rbi/x_twitter_scraper/resources/x/dm.rbi +39 -0
- data/rbi/x_twitter_scraper/resources/x/jobs.rbi +150 -0
- data/rbi/x_twitter_scraper/resources/x/lists.rbi +70 -0
- data/rbi/x_twitter_scraper/resources/x/spaces.rbi +129 -0
- data/rbi/x_twitter_scraper/resources/x/sports.rbi +332 -0
- data/rbi/x_twitter_scraper/resources/x/tweets/bookmark.rbi +93 -0
- data/rbi/x_twitter_scraper/resources/x/tweets.rbi +457 -0
- data/rbi/x_twitter_scraper/resources/x/users/block.rbi +91 -0
- data/rbi/x_twitter_scraper/resources/x/users/mute.rbi +91 -0
- data/rbi/x_twitter_scraper/resources/x/users.rbi +966 -0
- data/rbi/x_twitter_scraper/resources/x.rbi +286 -0
- data/sig/x_twitter_scraper/client.rbs +2 -0
- data/sig/x_twitter_scraper/internal/stream.rbs +21 -0
- data/sig/x_twitter_scraper/models/activity_export_params.rbs +108 -0
- data/sig/x_twitter_scraper/models/activity_list_params.rbs +106 -0
- data/sig/x_twitter_scraper/models/activity_list_response.rbs +12 -0
- data/sig/x_twitter_scraper/models/activity_log_row.rbs +95 -0
- data/sig/x_twitter_scraper/models/activity_record.rbs +448 -0
- data/sig/x_twitter_scraper/models/activity_retrieve_params.rbs +27 -0
- data/sig/x_twitter_scraper/models/audited_follower.rbs +95 -0
- data/sig/x_twitter_scraper/models/batch_user_tweets.rbs +59 -0
- data/sig/x_twitter_scraper/models/broadcast.rbs +245 -0
- data/sig/x_twitter_scraper/models/community.rbs +868 -0
- data/sig/x_twitter_scraper/models/community_analytics.rbs +71 -0
- data/sig/x_twitter_scraper/models/community_analytics_metric.rbs +19 -0
- data/sig/x_twitter_scraper/models/community_banner.rbs +118 -0
- data/sig/x_twitter_scraper/models/community_member_preview.rbs +34 -0
- data/sig/x_twitter_scraper/models/community_note.rbs +231 -0
- data/sig/x_twitter_scraper/models/community_note_entity.rbs +89 -0
- data/sig/x_twitter_scraper/models/community_notes_contributor.rbs +63 -0
- data/sig/x_twitter_scraper/models/community_notes_note_counts.rbs +47 -0
- data/sig/x_twitter_scraper/models/community_notes_rating_counts.rbs +58 -0
- data/sig/x_twitter_scraper/models/community_notes_rating_outcome.rbs +36 -0
- data/sig/x_twitter_scraper/models/community_page.rbs +34 -0
- data/sig/x_twitter_scraper/models/community_topic.rbs +46 -0
- data/sig/x_twitter_scraper/models/event_stream_params.rbs +58 -0
- data/sig/x_twitter_scraper/models/extraction_cancel_params.rbs +27 -0
- data/sig/x_twitter_scraper/models/extraction_cancel_response.rbs +19 -0
- data/sig/x_twitter_scraper/models/follower_audit.rbs +264 -0
- data/sig/x_twitter_scraper/models/follower_class.rbs +22 -0
- data/sig/x_twitter_scraper/models/follower_value_count.rbs +22 -0
- data/sig/x_twitter_scraper/models/football_box_score.rbs +60 -0
- data/sig/x_twitter_scraper/models/football_drive.rbs +84 -0
- data/sig/x_twitter_scraper/models/football_fumble_stats.rbs +34 -0
- data/sig/x_twitter_scraper/models/football_odds.rbs +26 -0
- data/sig/x_twitter_scraper/models/football_passing_stats.rbs +69 -0
- data/sig/x_twitter_scraper/models/football_period.rbs +44 -0
- data/sig/x_twitter_scraper/models/football_play.rbs +203 -0
- data/sig/x_twitter_scraper/models/football_play_detail.rbs +103 -0
- data/sig/x_twitter_scraper/models/football_player.rbs +143 -0
- data/sig/x_twitter_scraper/models/football_player_prop.rbs +49 -0
- data/sig/x_twitter_scraper/models/football_player_stats.rbs +330 -0
- data/sig/x_twitter_scraper/models/football_plays.rbs +65 -0
- data/sig/x_twitter_scraper/models/football_prop_category.rbs +39 -0
- data/sig/x_twitter_scraper/models/football_props.rbs +54 -0
- data/sig/x_twitter_scraper/models/football_quarter.rbs +39 -0
- data/sig/x_twitter_scraper/models/football_return_stats.rbs +44 -0
- data/sig/x_twitter_scraper/models/football_roster.rbs +54 -0
- data/sig/x_twitter_scraper/models/football_roster_team.rbs +19 -0
- data/sig/x_twitter_scraper/models/football_rushing_stats.rbs +44 -0
- data/sig/x_twitter_scraper/models/football_schedule.rbs +45 -0
- data/sig/x_twitter_scraper/models/football_schedule_game.rbs +101 -0
- data/sig/x_twitter_scraper/models/football_schedule_period.rbs +17 -0
- data/sig/x_twitter_scraper/models/football_scoreboard.rbs +152 -0
- data/sig/x_twitter_scraper/models/football_side.rbs +30 -0
- data/sig/x_twitter_scraper/models/football_team_box.rbs +34 -0
- data/sig/x_twitter_scraper/models/football_team_score.rbs +19 -0
- data/sig/x_twitter_scraper/models/football_team_totals.rbs +88 -0
- data/sig/x_twitter_scraper/models/hashflag.rbs +71 -0
- data/sig/x_twitter_scraper/models/job.rbs +173 -0
- data/sig/x_twitter_scraper/models/job_account.rbs +78 -0
- data/sig/x_twitter_scraper/models/job_company.rbs +25 -0
- data/sig/x_twitter_scraper/models/job_location.rbs +19 -0
- data/sig/x_twitter_scraper/models/job_locations.rbs +29 -0
- data/sig/x_twitter_scraper/models/monitor_upsert_by_username_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/monitor_upsert_by_username_response.rbs +95 -0
- data/sig/x_twitter_scraper/models/monitors/post_create_params.rbs +55 -0
- data/sig/x_twitter_scraper/models/monitors/post_delete_params.rbs +29 -0
- data/sig/x_twitter_scraper/models/monitors/post_delete_response.rbs +32 -0
- data/sig/x_twitter_scraper/models/monitors/post_list_params.rbs +38 -0
- data/sig/x_twitter_scraper/models/monitors/post_list_response.rbs +43 -0
- data/sig/x_twitter_scraper/models/monitors/post_retrieve_metrics_params.rbs +36 -0
- data/sig/x_twitter_scraper/models/monitors/post_retrieve_params.rbs +29 -0
- data/sig/x_twitter_scraper/models/monitors/post_update_params.rbs +55 -0
- data/sig/x_twitter_scraper/models/news_version.rbs +34 -0
- data/sig/x_twitter_scraper/models/paginated_community_notes.rbs +34 -0
- data/sig/x_twitter_scraper/models/paginated_jobs.rbs +34 -0
- data/sig/x_twitter_scraper/models/paginated_lists.rbs +34 -0
- data/sig/x_twitter_scraper/models/paginated_user_ids.rbs +30 -0
- data/sig/x_twitter_scraper/models/place.rbs +88 -0
- data/sig/x_twitter_scraper/models/place_search_result.rbs +93 -0
- data/sig/x_twitter_scraper/models/post_engagement_metrics.rbs +49 -0
- data/sig/x_twitter_scraper/models/post_event_type.rbs +36 -0
- data/sig/x_twitter_scraper/models/post_metric_point.rbs +19 -0
- data/sig/x_twitter_scraper/models/post_metric_reading.rbs +19 -0
- data/sig/x_twitter_scraper/models/post_metrics.rbs +49 -0
- data/sig/x_twitter_scraper/models/post_monitor.rbs +270 -0
- data/sig/x_twitter_scraper/models/post_monitor_metrics.rbs +93 -0
- data/sig/x_twitter_scraper/models/profile_translation.rbs +51 -0
- data/sig/x_twitter_scraper/models/resolved_link.rbs +21 -0
- data/sig/x_twitter_scraper/models/search_suggestion_cashtag.rbs +94 -0
- data/sig/x_twitter_scraper/models/search_suggestion_hashtag.rbs +40 -0
- data/sig/x_twitter_scraper/models/search_suggestion_topic.rbs +40 -0
- data/sig/x_twitter_scraper/models/search_suggestion_user.rbs +156 -0
- data/sig/x_twitter_scraper/models/search_suggestions.rbs +49 -0
- data/sig/x_twitter_scraper/models/shadowban_report.rbs +730 -0
- data/sig/x_twitter_scraper/models/shadowban_verdict.rbs +19 -0
- data/sig/x_twitter_scraper/models/space.rbs +220 -0
- data/sig/x_twitter_scraper/models/space_participant.rbs +106 -0
- data/sig/x_twitter_scraper/models/space_sharing.rbs +58 -0
- data/sig/x_twitter_scraper/models/sports_game_audience.rbs +151 -0
- data/sig/x_twitter_scraper/models/sports_game_posts.rbs +131 -0
- data/sig/x_twitter_scraper/models/sports_team.rbs +124 -0
- data/sig/x_twitter_scraper/models/sports_team_game.rbs +59 -0
- data/sig/x_twitter_scraper/models/subtitle_track.rbs +83 -0
- data/sig/x_twitter_scraper/models/support/attachment_download_params.rbs +4 -0
- data/sig/x_twitter_scraper/models/trend_location.rbs +59 -0
- data/sig/x_twitter_scraper/models/tweet_analysis_page.rbs +4 -0
- data/sig/x_twitter_scraper/models/tweet_embed.rbs +58 -0
- data/sig/x_twitter_scraper/models/tweet_entities.rbs +73 -0
- data/sig/x_twitter_scraper/models/tweet_hashtag.rbs +40 -0
- data/sig/x_twitter_scraper/models/tweet_insights.rbs +79 -0
- data/sig/x_twitter_scraper/models/tweet_smart_tag.rbs +74 -0
- data/sig/x_twitter_scraper/models/tweet_subtitles.rbs +29 -0
- data/sig/x_twitter_scraper/models/tweet_symbol.rbs +49 -0
- data/sig/x_twitter_scraper/models/tweet_translation.rbs +46 -0
- data/sig/x_twitter_scraper/models/tweet_url_entity.rbs +47 -0
- data/sig/x_twitter_scraper/models/tweet_user_mention.rbs +45 -0
- data/sig/x_twitter_scraper/models/user_affiliate_label.rbs +77 -0
- data/sig/x_twitter_scraper/models/user_auxiliary_label.rbs +54 -0
- data/sig/x_twitter_scraper/models/user_highlights_info.rbs +27 -0
- data/sig/x_twitter_scraper/models/user_identity_verification.rbs +47 -0
- data/sig/x_twitter_scraper/models/user_insights.rbs +163 -0
- data/sig/x_twitter_scraper/models/user_live_status.rbs +39 -0
- data/sig/x_twitter_scraper/models/webhook_create_telegram_link_params.rbs +32 -0
- data/sig/x_twitter_scraper/models/webhook_create_telegram_link_response.rbs +20 -0
- data/sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_params.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/broadcast_retrieve_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/broadcast_retrieve_response.rbs +20 -0
- data/sig/x_twitter_scraper/models/x/communities/media_list_params.rbs +373 -0
- data/sig/x_twitter_scraper/models/x/community_find_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/community_list_popular_params.rbs +69 -0
- data/sig/x_twitter_scraper/models/x/community_list_suggested_params.rbs +44 -0
- data/sig/x_twitter_scraper/models/x/community_list_suggested_response.rbs +38 -0
- data/sig/x_twitter_scraper/models/x/community_list_topics_params.rbs +44 -0
- data/sig/x_twitter_scraper/models/x/community_list_topics_response.rbs +38 -0
- data/sig/x_twitter_scraper/models/x/community_note_list_contributor_deleted_notes_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/community_note_list_contributor_notes_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/community_note_retrieve_contributor_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/community_note_retrieve_contributor_response.rbs +24 -0
- data/sig/x_twitter_scraper/models/x/community_retrieve_analytics_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/community_search_members_params.rbs +177 -0
- data/sig/x_twitter_scraper/models/x/dm_delete_message_params.rbs +54 -0
- data/sig/x_twitter_scraper/models/x/job_list_locations_params.rbs +48 -0
- data/sig/x_twitter_scraper/models/x/job_retrieve_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/job_retrieve_response.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/job_search_params.rbs +102 -0
- data/sig/x_twitter_scraper/models/x/list_retrieve_followers_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/list_retrieve_members_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/list_retrieve_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/list_retrieve_response.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/list_retrieve_search_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/space_retrieve_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/space_retrieve_replay_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/space_retrieve_replay_response.rbs +48 -0
- data/sig/x_twitter_scraper/models/x/space_retrieve_response.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/space_search_params.rbs +82 -0
- data/sig/x_twitter_scraper/models/x/space_search_response.rbs +36 -0
- data/sig/x_twitter_scraper/models/x/sport_list_games_params.rbs +78 -0
- data/sig/x_twitter_scraper/models/x/sport_list_posts_params.rbs +96 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_audience_params.rbs +62 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_box_score_params.rbs +62 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_player_props_params.rbs +61 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_plays_params.rbs +62 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_roster_params.rbs +61 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_scoreboard_params.rbs +62 -0
- data/sig/x_twitter_scraper/models/x/tweet_analysis_params.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/tweet_check_repost_params.rbs +46 -0
- data/sig/x_twitter_scraper/models/x/tweet_check_repost_response.rbs +56 -0
- data/sig/x_twitter_scraper/models/x/tweet_embed_params.rbs +87 -0
- data/sig/x_twitter_scraper/models/x/tweet_embed_response.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_hidden_replies_params.rbs +371 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_insights_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_insights_response.rbs +22 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_replies_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_retweeter_ids_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_subtitles_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_subtitles_response.rbs +22 -0
- data/sig/x_twitter_scraper/models/x/tweet_list_top_params.rbs +115 -0
- data/sig/x_twitter_scraper/models/x/tweet_resolve_links_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/tweet_resolve_links_response.rbs +31 -0
- data/sig/x_twitter_scraper/models/x/tweet_search_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/tweet_translate_params.rbs +46 -0
- data/sig/x_twitter_scraper/models/x/tweet_translate_response.rbs +24 -0
- data/sig/x_twitter_scraper/models/x/tweets/bookmark_create_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x/tweets/bookmark_delete_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_affiliates_params.rbs +186 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_articles_params.rbs +371 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_batch_response.rbs +10 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_batch_tweets_params.rbs +62 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_follower_audit_params.rbs +48 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_follower_audit_response.rbs +20 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_follower_ids_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_following_ids_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_following_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_highlights_params.rbs +371 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_insights_params.rbs +48 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_insights_response.rbs +30 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_list_memberships_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_lists_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_live_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_shadowban_params.rbs +48 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_similar_params.rbs +186 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_subscriptions_params.rbs +186 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_verified_followers_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/user_translate_bio_params.rbs +46 -0
- data/sig/x_twitter_scraper/models/x/user_translate_bio_response.rbs +33 -0
- data/sig/x_twitter_scraper/models/x/users/block_create_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x/users/block_delete_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x/users/mute_create_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x/users/mute_delete_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x_autocomplete_search_params.rbs +52 -0
- data/sig/x_twitter_scraper/models/x_get_hashflags_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x_get_hashflags_response.rbs +41 -0
- data/sig/x_twitter_scraper/models/x_get_news_story_versions_params.rbs +40 -0
- data/sig/x_twitter_scraper/models/x_get_news_story_versions_response.rbs +34 -0
- data/sig/x_twitter_scraper/models/x_get_trend_locations_params.rbs +82 -0
- data/sig/x_twitter_scraper/models/x_get_trend_locations_response.rbs +41 -0
- data/sig/x_twitter_scraper/models/x_get_trends_history_params.rbs +102 -0
- data/sig/x_twitter_scraper/models/x_get_trends_history_response.rbs +149 -0
- data/sig/x_twitter_scraper/models/x_list.rbs +112 -0
- data/sig/x_twitter_scraper/models/x_list_banner.rbs +157 -0
- data/sig/x_twitter_scraper/models/x_search_places_params.rbs +46 -0
- data/sig/x_twitter_scraper/models/x_search_places_response.rbs +41 -0
- data/sig/x_twitter_scraper/models.rbs +234 -0
- data/sig/x_twitter_scraper/resources/activity.rbs +38 -0
- data/sig/x_twitter_scraper/resources/events.rbs +7 -0
- data/sig/x_twitter_scraper/resources/extractions.rbs +5 -0
- data/sig/x_twitter_scraper/resources/monitors/posts.rbs +51 -0
- data/sig/x_twitter_scraper/resources/monitors.rbs +9 -0
- data/sig/x_twitter_scraper/resources/support/attachments.rbs +4 -0
- data/sig/x_twitter_scraper/resources/webhooks.rbs +5 -0
- data/sig/x_twitter_scraper/resources/x/account_connection_attempts.rbs +4 -0
- data/sig/x_twitter_scraper/resources/x/analysis.rbs +4 -0
- data/sig/x_twitter_scraper/resources/x/broadcasts.rbs +20 -0
- data/sig/x_twitter_scraper/resources/x/communities/media.rbs +60 -0
- data/sig/x_twitter_scraper/resources/x/communities.rbs +68 -0
- data/sig/x_twitter_scraper/resources/x/community_notes.rbs +38 -0
- data/sig/x_twitter_scraper/resources/x/dm.rbs +9 -0
- data/sig/x_twitter_scraper/resources/x/jobs.rbs +43 -0
- data/sig/x_twitter_scraper/resources/x/lists.rbs +16 -0
- data/sig/x_twitter_scraper/resources/x/spaces.rbs +37 -0
- data/sig/x_twitter_scraper/resources/x/sports.rbs +82 -0
- data/sig/x_twitter_scraper/resources/x/tweets/bookmark.rbs +31 -0
- data/sig/x_twitter_scraper/resources/x/tweets.rbs +114 -0
- data/sig/x_twitter_scraper/resources/x/users/block.rbs +31 -0
- data/sig/x_twitter_scraper/resources/x/users/mute.rbs +31 -0
- data/sig/x_twitter_scraper/resources/x/users.rbs +255 -0
- data/sig/x_twitter_scraper/resources/x.rbs +68 -0
- metadata +668 -2
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# frozen_string_literal: true
|
|
6
|
+
|
|
7
|
+
module XTwitterScraper
|
|
8
|
+
module Resources
|
|
9
|
+
class Activity
|
|
10
|
+
# Returns the account's activity log, newest first, with the Activity page's
|
|
11
|
+
# filters. It covers write actions, extractions, monitor changes and events,
|
|
12
|
+
# webhooks, giveaways, media, support, API keys, X account connections and
|
|
13
|
+
# billing. Pick a file format to get the same rows as a CSV, Excel, Markdown, PDF
|
|
14
|
+
# or text file.
|
|
15
|
+
#
|
|
16
|
+
# @overload list(format_: nil, limit: nil, category: nil, status: nil, q: nil, since: nil, until_: nil, request_options: {})
|
|
17
|
+
#
|
|
18
|
+
# @param format_ [Symbol, XTwitterScraper::Models::ActivityListParams::Format] Answer format. JSON by default.
|
|
19
|
+
#
|
|
20
|
+
# @param limit [Integer] Most rows to return, with no upper limit. A PDF above 10,000 rows comes as a ZIP of PDF parts.
|
|
21
|
+
#
|
|
22
|
+
# @param category [String] Activity group, like the Activity page's tabs. `all` by default, or `actions`, `extractions`, `monitors`, `webhooks` or `billing`.
|
|
23
|
+
#
|
|
24
|
+
# @param status [String] Comma-separated statuses.
|
|
25
|
+
#
|
|
26
|
+
# @param q [String] Search text.
|
|
27
|
+
#
|
|
28
|
+
# @param since [String, Time] Oldest time, ISO 8601.
|
|
29
|
+
#
|
|
30
|
+
# @param until_ [String, Time] Newest time, ISO 8601.
|
|
31
|
+
#
|
|
32
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
33
|
+
#
|
|
34
|
+
# @return [XTwitterScraper::Models::ActivityListResponse]
|
|
35
|
+
#
|
|
36
|
+
# @see XTwitterScraper::Models::ActivityListParams
|
|
37
|
+
def list(params = {})
|
|
38
|
+
parsed, options = XTwitterScraper::Models::ActivityListParams.dump_request(params)
|
|
39
|
+
query = XTwitterScraper::Internal::Util.encode_query_params(parsed)
|
|
40
|
+
@client.request(
|
|
41
|
+
method: :get,
|
|
42
|
+
path: "activity",
|
|
43
|
+
query: query,
|
|
44
|
+
model: XTwitterScraper::Models::ActivityListResponse,
|
|
45
|
+
options: options
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Returns the account's activity log, newest first, with the Activity page's
|
|
50
|
+
# filters. It covers write actions, extractions, monitor changes and events,
|
|
51
|
+
# webhooks, giveaways, media, support, API keys, X account connections and
|
|
52
|
+
# billing. Pick a file format to get the same rows as a CSV, Excel, Markdown, PDF
|
|
53
|
+
# or text file.
|
|
54
|
+
#
|
|
55
|
+
# @overload export(format_:, limit: nil, category: nil, status: nil, q: nil, since: nil, until_: nil, request_options: {})
|
|
56
|
+
#
|
|
57
|
+
# @param format_ [Symbol, XTwitterScraper::Models::ActivityExportParams::Format] Answer format. JSON by default.
|
|
58
|
+
#
|
|
59
|
+
# @param limit [Integer] Most rows to return, with no upper limit. A PDF above 10,000 rows comes as a ZIP of PDF parts.
|
|
60
|
+
#
|
|
61
|
+
# @param category [String] Activity group, like the Activity page's tabs. `all` by default, or `actions`, `extractions`, `monitors`, `webhooks` or `billing`.
|
|
62
|
+
#
|
|
63
|
+
# @param status [String] Comma-separated statuses.
|
|
64
|
+
#
|
|
65
|
+
# @param q [String] Search text.
|
|
66
|
+
#
|
|
67
|
+
# @param since [String, Time] Oldest time, ISO 8601.
|
|
68
|
+
#
|
|
69
|
+
# @param until_ [String, Time] Newest time, ISO 8601.
|
|
70
|
+
#
|
|
71
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
72
|
+
#
|
|
73
|
+
# @return [StringIO]
|
|
74
|
+
#
|
|
75
|
+
# @see XTwitterScraper::Models::ActivityExportParams
|
|
76
|
+
def export(params)
|
|
77
|
+
parsed, options = XTwitterScraper::Models::ActivityExportParams.dump_request(params)
|
|
78
|
+
query = XTwitterScraper::Internal::Util.encode_query_params(parsed)
|
|
79
|
+
@client.request(
|
|
80
|
+
method: :get,
|
|
81
|
+
path: "activity",
|
|
82
|
+
query: query,
|
|
83
|
+
headers: {"accept" => "application/octet-stream"},
|
|
84
|
+
model: StringIO,
|
|
85
|
+
options: options
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Returns 1 activity of the account with its full technical record. It covers
|
|
90
|
+
# every kind of activity the Activity log shows. The record holds the request, the
|
|
91
|
+
# caller, the charge, every timestamp in UTC and related activity. It never holds
|
|
92
|
+
# an API key value, a webhook secret or another account's data. Only a signed-in
|
|
93
|
+
# dashboard session sees an `api_key` record, so an API key or an OAuth app gets
|
|
94
|
+
# 404 for its ID.
|
|
95
|
+
#
|
|
96
|
+
# @overload retrieve(id, request_options: {})
|
|
97
|
+
#
|
|
98
|
+
# @param id [String] Activity ID. It is the id of an Activity log row and the last part of the dashboard's activity page URL.
|
|
99
|
+
#
|
|
100
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
101
|
+
#
|
|
102
|
+
# @return [XTwitterScraper::Models::ActivityRecord]
|
|
103
|
+
#
|
|
104
|
+
# @see XTwitterScraper::Models::ActivityRetrieveParams
|
|
105
|
+
def retrieve(id, params = {})
|
|
106
|
+
@client.request(
|
|
107
|
+
method: :get,
|
|
108
|
+
path: ["activity/%1$s", id],
|
|
109
|
+
model: XTwitterScraper::Models::ActivityRecord,
|
|
110
|
+
options: params[:request_options]
|
|
111
|
+
)
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# @api private
|
|
115
|
+
#
|
|
116
|
+
# @param client [XTwitterScraper::Client]
|
|
117
|
+
def initialize(client:)
|
|
118
|
+
@client = client
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
@@ -66,6 +66,48 @@ module XTwitterScraper
|
|
|
66
66
|
)
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
+
# Streams the account's monitor events as server-sent events, each named by its
|
|
70
|
+
# event type and numbered by its event ID. A reconnect that sends Last-Event-ID
|
|
71
|
+
# first gets every event after that one from the last 30 days, then each new
|
|
72
|
+
# event. Set lookBack to also get events saved late. A connection lasts up to 30
|
|
73
|
+
# minutes and sends a comment every 15 seconds while idle. Keep up to 200 streams
|
|
74
|
+
# open per account. Events and streams cost no credits. Add include=post_metrics
|
|
75
|
+
# to also get post.metrics frames. The first poll sends 1 for each post monitor
|
|
76
|
+
# with a check or a pause. After that, a frame comes when a monitor's saved
|
|
77
|
+
# numbers or status change. These frames carry no ID, so Last-Event-ID never
|
|
78
|
+
# moves.
|
|
79
|
+
#
|
|
80
|
+
# @overload stream(include: nil, look_back: nil, last_event_id: nil, request_options: {})
|
|
81
|
+
#
|
|
82
|
+
# @param include [Symbol, XTwitterScraper::Models::EventStreamParams::Include] Set to post_metrics to also get each post monitor's saved numbers. Any other value is refused.
|
|
83
|
+
#
|
|
84
|
+
# @param look_back [Boolean] Set to true to resume 30 seconds before Last-Event-ID. Events saved late then still arrive. Events you have can arrive again, so skip IDs you've seen. An ID the stream can't find starts 5 minutes back, not 30 days.
|
|
85
|
+
#
|
|
86
|
+
# @param last_event_id [String] The last event ID the client got. The stream first sends every event after it. A value that is not an event ID counts as no header.
|
|
87
|
+
#
|
|
88
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
89
|
+
#
|
|
90
|
+
# @return [XTwitterScraper::Internal::Stream<XTwitterScraper::Models::Event>]
|
|
91
|
+
#
|
|
92
|
+
# @see XTwitterScraper::Models::EventStreamParams
|
|
93
|
+
def stream(params = {})
|
|
94
|
+
parsed, options = XTwitterScraper::Models::EventStreamParams.dump_request(params)
|
|
95
|
+
header_params = {last_event_id: "last-event-id"}
|
|
96
|
+
query = XTwitterScraper::Internal::Util.encode_query_params(parsed.except(*header_params.keys))
|
|
97
|
+
@client.request(
|
|
98
|
+
method: :get,
|
|
99
|
+
path: "events/stream",
|
|
100
|
+
query: query,
|
|
101
|
+
headers: {
|
|
102
|
+
"accept" => "text/event-stream",
|
|
103
|
+
**parsed.slice(*header_params.keys).transform_keys(header_params)
|
|
104
|
+
},
|
|
105
|
+
stream: XTwitterScraper::Internal::Stream,
|
|
106
|
+
model: XTwitterScraper::Models::Event,
|
|
107
|
+
options: options
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
|
|
69
111
|
# @api private
|
|
70
112
|
#
|
|
71
113
|
# @param client [XTwitterScraper::Client]
|
|
@@ -645,6 +645,26 @@ module XTwitterScraper
|
|
|
645
645
|
)
|
|
646
646
|
end
|
|
647
647
|
|
|
648
|
+
# Cancels an active extraction without charging or saving rows.
|
|
649
|
+
#
|
|
650
|
+
# @overload cancel(id, request_options: {})
|
|
651
|
+
#
|
|
652
|
+
# @param id [String] Extraction ID returned by `POST /extractions` or the extraction list. Another shape gets 400 `invalid_id`.
|
|
653
|
+
#
|
|
654
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
655
|
+
#
|
|
656
|
+
# @return [XTwitterScraper::Models::ExtractionCancelResponse]
|
|
657
|
+
#
|
|
658
|
+
# @see XTwitterScraper::Models::ExtractionCancelParams
|
|
659
|
+
def cancel(id, params = {})
|
|
660
|
+
@client.request(
|
|
661
|
+
method: :delete,
|
|
662
|
+
path: ["extractions/%1$s", id],
|
|
663
|
+
model: XTwitterScraper::Models::ExtractionCancelResponse,
|
|
664
|
+
options: params[:request_options]
|
|
665
|
+
)
|
|
666
|
+
end
|
|
667
|
+
|
|
648
668
|
# @api private
|
|
649
669
|
#
|
|
650
670
|
# @param client [XTwitterScraper::Client]
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# frozen_string_literal: true
|
|
6
|
+
|
|
7
|
+
module XTwitterScraper
|
|
8
|
+
module Resources
|
|
9
|
+
class Monitors
|
|
10
|
+
class Posts
|
|
11
|
+
# Stops 1 post monitor, then removes its stored events & metric history in bounded
|
|
12
|
+
# batches. Poll statusUrl until the monitor returns 404.
|
|
13
|
+
#
|
|
14
|
+
# @overload delete(id, request_options: {})
|
|
15
|
+
#
|
|
16
|
+
# @param id [String] Resource ID returned by the matching create or list endpoint.
|
|
17
|
+
#
|
|
18
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
19
|
+
#
|
|
20
|
+
# @return [XTwitterScraper::Models::Monitors::PostDeleteResponse]
|
|
21
|
+
#
|
|
22
|
+
# @see XTwitterScraper::Models::Monitors::PostDeleteParams
|
|
23
|
+
def delete(id, params = {})
|
|
24
|
+
@client.request(
|
|
25
|
+
method: :delete,
|
|
26
|
+
path: ["monitors/posts/%1$s", id],
|
|
27
|
+
model: XTwitterScraper::Models::Monitors::PostDeleteResponse,
|
|
28
|
+
options: params[:request_options]
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns post monitors with each post's 6 metrics, their current values & gains
|
|
33
|
+
# since tracking began.
|
|
34
|
+
#
|
|
35
|
+
# @overload list(limit: nil, cursor: nil, request_options: {})
|
|
36
|
+
#
|
|
37
|
+
# @param limit [Integer] Maximum items per page, from 1 to 10,000. Default 200. Pass nextCursor as cursor for the next page.
|
|
38
|
+
#
|
|
39
|
+
# @param cursor [String] Previous nextCursor. The after alias also works. Offset pagination is not supported.
|
|
40
|
+
#
|
|
41
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
|
+
#
|
|
43
|
+
# @return [XTwitterScraper::Models::Monitors::PostListResponse]
|
|
44
|
+
#
|
|
45
|
+
# @see XTwitterScraper::Models::Monitors::PostListParams
|
|
46
|
+
def list(params = {})
|
|
47
|
+
parsed, options = XTwitterScraper::Models::Monitors::PostListParams.dump_request(params)
|
|
48
|
+
query = XTwitterScraper::Internal::Util.encode_query_params(parsed)
|
|
49
|
+
@client.request(
|
|
50
|
+
method: :get,
|
|
51
|
+
path: "monitors/posts",
|
|
52
|
+
query: query,
|
|
53
|
+
model: XTwitterScraper::Models::Monitors::PostListResponse,
|
|
54
|
+
options: options
|
|
55
|
+
)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns 1 post monitor with its post & the 6 metrics, each with its current
|
|
59
|
+
# value & gain since tracking began.
|
|
60
|
+
#
|
|
61
|
+
# @overload retrieve(id, request_options: {})
|
|
62
|
+
#
|
|
63
|
+
# @param id [String] Resource ID returned by the matching create or list endpoint.
|
|
64
|
+
#
|
|
65
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
66
|
+
#
|
|
67
|
+
# @return [XTwitterScraper::Models::PostMonitor]
|
|
68
|
+
#
|
|
69
|
+
# @see XTwitterScraper::Models::Monitors::PostRetrieveParams
|
|
70
|
+
def retrieve(id, params = {})
|
|
71
|
+
@client.request(
|
|
72
|
+
method: :get,
|
|
73
|
+
path: ["monitors/posts/%1$s", id],
|
|
74
|
+
model: XTwitterScraper::Models::PostMonitor,
|
|
75
|
+
options: params[:request_options]
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Returns 1 bucket per hour with each metric's value at the hour's end & its gain
|
|
80
|
+
# over that hour. The last bucket is the current hour. Hours before tracking began
|
|
81
|
+
# carry the starting values with a gain of 0.
|
|
82
|
+
#
|
|
83
|
+
# @overload retrieve_metrics(id, hours: nil, request_options: {})
|
|
84
|
+
#
|
|
85
|
+
# @param id [String] Resource ID returned by the matching create or list endpoint.
|
|
86
|
+
#
|
|
87
|
+
# @param hours [Integer] Hours to return, from 1 to 17,520.
|
|
88
|
+
#
|
|
89
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
90
|
+
#
|
|
91
|
+
# @return [XTwitterScraper::Models::PostMonitorMetrics]
|
|
92
|
+
#
|
|
93
|
+
# @see XTwitterScraper::Models::Monitors::PostRetrieveMetricsParams
|
|
94
|
+
def retrieve_metrics(id, params = {})
|
|
95
|
+
parsed, options = XTwitterScraper::Models::Monitors::PostRetrieveMetricsParams.dump_request(params)
|
|
96
|
+
query = XTwitterScraper::Internal::Util.encode_query_params(parsed)
|
|
97
|
+
@client.request(
|
|
98
|
+
method: :get,
|
|
99
|
+
path: ["monitors/posts/%1$s/metrics", id],
|
|
100
|
+
query: query,
|
|
101
|
+
model: XTwitterScraper::Models::PostMonitorMetrics,
|
|
102
|
+
options: options
|
|
103
|
+
)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Updates a post monitor's label, event types or active state. Turning a paused
|
|
107
|
+
# monitor on reads the post first, & answers 409 while X hides it.
|
|
108
|
+
#
|
|
109
|
+
# @overload update(id, event_types: nil, is_active: nil, name: nil, request_options: {})
|
|
110
|
+
#
|
|
111
|
+
# @param id [String] Resource ID returned by the matching create or list endpoint.
|
|
112
|
+
#
|
|
113
|
+
# @param event_types [Array<Symbol, XTwitterScraper::Models::PostEventType>] Post event types to send. Without it, a monitor sends new replies, new quotes, like & retweet changes, edits & deletion.
|
|
114
|
+
#
|
|
115
|
+
# @param is_active [Boolean]
|
|
116
|
+
#
|
|
117
|
+
# @param name [String] New label for the post monitor. Send null to remove it.
|
|
118
|
+
#
|
|
119
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
120
|
+
#
|
|
121
|
+
# @return [XTwitterScraper::Models::PostMonitor]
|
|
122
|
+
#
|
|
123
|
+
# @see XTwitterScraper::Models::Monitors::PostUpdateParams
|
|
124
|
+
def update(id, params = {})
|
|
125
|
+
parsed, options = XTwitterScraper::Models::Monitors::PostUpdateParams.dump_request(params)
|
|
126
|
+
@client.request(
|
|
127
|
+
method: :patch,
|
|
128
|
+
path: ["monitors/posts/%1$s", id],
|
|
129
|
+
body: parsed,
|
|
130
|
+
model: XTwitterScraper::Models::PostMonitor,
|
|
131
|
+
options: options
|
|
132
|
+
)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Creates a monitor for 1 X post. It tracks replies, quotes, edits, deletion & 6
|
|
136
|
+
# metrics, for 30 credits an hour with events & webhook deliveries included. That
|
|
137
|
+
# hourly price is a monitor's only charge. Creation needs the credits of the first
|
|
138
|
+
# hour & reads the post once.
|
|
139
|
+
#
|
|
140
|
+
# @overload create(post:, name: nil, event_types: nil, is_active: nil, request_options: {})
|
|
141
|
+
#
|
|
142
|
+
# @param post [String] Post link or ID. x.com, twitter.com, mobile & /i/web/status/ links work with any query string.
|
|
143
|
+
#
|
|
144
|
+
# @param name [String] Your own label for the post monitor. Its events carry it as monitorName.
|
|
145
|
+
#
|
|
146
|
+
# @param event_types [Array<Symbol, XTwitterScraper::Models::PostEventType>] Post event types to send. Without it, a monitor sends new replies, new quotes, like & retweet changes, edits & deletion.
|
|
147
|
+
#
|
|
148
|
+
# @param is_active [Boolean] Send false to create the monitor paused. A paused monitor reads nothing & costs nothing until a PATCH sets isActive to true.
|
|
149
|
+
#
|
|
150
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
151
|
+
#
|
|
152
|
+
# @return [XTwitterScraper::Models::PostMonitor]
|
|
153
|
+
#
|
|
154
|
+
# @see XTwitterScraper::Models::Monitors::PostCreateParams
|
|
155
|
+
def create(params)
|
|
156
|
+
parsed, options = XTwitterScraper::Models::Monitors::PostCreateParams.dump_request(params)
|
|
157
|
+
@client.request(
|
|
158
|
+
method: :post,
|
|
159
|
+
path: "monitors/posts",
|
|
160
|
+
body: parsed,
|
|
161
|
+
model: XTwitterScraper::Models::PostMonitor,
|
|
162
|
+
options: options
|
|
163
|
+
)
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# @api private
|
|
167
|
+
#
|
|
168
|
+
# @param client [XTwitterScraper::Client]
|
|
169
|
+
def initialize(client:)
|
|
170
|
+
@client = client
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
@@ -12,6 +12,9 @@ module XTwitterScraper
|
|
|
12
12
|
# @return [XTwitterScraper::Resources::Monitors::Keywords]
|
|
13
13
|
attr_reader :keywords
|
|
14
14
|
|
|
15
|
+
# @return [XTwitterScraper::Resources::Monitors::Posts]
|
|
16
|
+
attr_reader :posts
|
|
17
|
+
|
|
15
18
|
# Creates an account monitor. Monitors are unlimited. Active monitors check every
|
|
16
19
|
# 1 second and cost 30 credits per hour. Events and webhook deliveries are
|
|
17
20
|
# included. Creation requires available credits for the first hourly charge and
|
|
@@ -134,12 +137,44 @@ module XTwitterScraper
|
|
|
134
137
|
)
|
|
135
138
|
end
|
|
136
139
|
|
|
140
|
+
# Creates the monitor if it does not exist, or updates it if it does. Send the
|
|
141
|
+
# same call twice & you still have 1 monitor. A new monitor answers 201 & an
|
|
142
|
+
# update answers 200. Both carry `created`, so you know which one ran. Creating
|
|
143
|
+
# needs the credits of the first hour, then costs 30 credits an hour. A stopped
|
|
144
|
+
# monitor turns back on & counts as created. Updating is free & replaces the event
|
|
145
|
+
# types. It changes the name only when you send one.
|
|
146
|
+
#
|
|
147
|
+
# @overload upsert_by_username(username, event_types:, name: nil, request_options: {})
|
|
148
|
+
#
|
|
149
|
+
# @param username [String] The account's X username, with or without @, or its numeric user ID. A number is a user ID, so this call matches the account even after a rename.
|
|
150
|
+
#
|
|
151
|
+
# @param event_types [Array<Symbol, XTwitterScraper::Models::EventType>] Array of event types to subscribe to.
|
|
152
|
+
#
|
|
153
|
+
# @param name [String] Your label for the monitor. Its events carry it as monitorName. Leave it out to keep the current label, or send null to remove it.
|
|
154
|
+
#
|
|
155
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
156
|
+
#
|
|
157
|
+
# @return [XTwitterScraper::Models::MonitorUpsertByUsernameResponse]
|
|
158
|
+
#
|
|
159
|
+
# @see XTwitterScraper::Models::MonitorUpsertByUsernameParams
|
|
160
|
+
def upsert_by_username(username, params)
|
|
161
|
+
parsed, options = XTwitterScraper::Models::MonitorUpsertByUsernameParams.dump_request(params)
|
|
162
|
+
@client.request(
|
|
163
|
+
method: :put,
|
|
164
|
+
path: ["monitors/username/%1$s", username],
|
|
165
|
+
body: parsed,
|
|
166
|
+
model: XTwitterScraper::Models::MonitorUpsertByUsernameResponse,
|
|
167
|
+
options: options
|
|
168
|
+
)
|
|
169
|
+
end
|
|
170
|
+
|
|
137
171
|
# @api private
|
|
138
172
|
#
|
|
139
173
|
# @param client [XTwitterScraper::Client]
|
|
140
174
|
def initialize(client:)
|
|
141
175
|
@client = client
|
|
142
176
|
@keywords = XTwitterScraper::Resources::Monitors::Keywords.new(client: client)
|
|
177
|
+
@posts = XTwitterScraper::Resources::Monitors::Posts.new(client: client)
|
|
143
178
|
end
|
|
144
179
|
end
|
|
145
180
|
end
|
|
@@ -172,6 +172,34 @@ module XTwitterScraper
|
|
|
172
172
|
)
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
+
# Returns a t.me link to @XquikBot that connects a Telegram chat to the account's
|
|
176
|
+
# monitor events. Opening it & pressing Start connects the chat, which then gets
|
|
177
|
+
# each alert as a message. Alerts that wait together come as 1 digest. A busy chat
|
|
178
|
+
# gets 5 quick messages, then 1 every 30 s. Only 1 message a minute rings. The
|
|
179
|
+
# link works once, within 15 minutes. The chat appears in the webhook list with
|
|
180
|
+
# the URL `telegram:<chat ID>`, with deliveries, retries & resume as any webhook.
|
|
181
|
+
# In the chat, /stop pauses its alerts. It costs no credits.
|
|
182
|
+
#
|
|
183
|
+
# @overload create_telegram_link(event_types: nil, request_options: {})
|
|
184
|
+
#
|
|
185
|
+
# @param event_types [Array<Symbol, XTwitterScraper::Models::EventType>] Array of event types to subscribe to.
|
|
186
|
+
#
|
|
187
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
188
|
+
#
|
|
189
|
+
# @return [XTwitterScraper::Models::WebhookCreateTelegramLinkResponse]
|
|
190
|
+
#
|
|
191
|
+
# @see XTwitterScraper::Models::WebhookCreateTelegramLinkParams
|
|
192
|
+
def create_telegram_link(params = {})
|
|
193
|
+
parsed, options = XTwitterScraper::Models::WebhookCreateTelegramLinkParams.dump_request(params)
|
|
194
|
+
@client.request(
|
|
195
|
+
method: :post,
|
|
196
|
+
path: "webhooks/telegram",
|
|
197
|
+
body: parsed,
|
|
198
|
+
model: XTwitterScraper::Models::WebhookCreateTelegramLinkResponse,
|
|
199
|
+
options: options
|
|
200
|
+
)
|
|
201
|
+
end
|
|
202
|
+
|
|
175
203
|
# @api private
|
|
176
204
|
#
|
|
177
205
|
# @param client [XTwitterScraper::Client]
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# frozen_string_literal: true
|
|
6
|
+
|
|
7
|
+
module XTwitterScraper
|
|
8
|
+
module Resources
|
|
9
|
+
class X
|
|
10
|
+
class Broadcasts
|
|
11
|
+
# Returns 1 X broadcast, the live video X hosts at x.com/i/broadcasts, live or
|
|
12
|
+
# ended. Accepts the broadcast ID or the URL-encoded broadcast URL. Reading a
|
|
13
|
+
# broadcast adds no view to it.
|
|
14
|
+
#
|
|
15
|
+
# @overload retrieve(id, fields: nil, omit: nil, request_options: {})
|
|
16
|
+
#
|
|
17
|
+
# @param id [String] X broadcast ID, or the URL-encoded broadcast URL, such as x.com/i/broadcasts/1nGeLMWbkpaKX.
|
|
18
|
+
#
|
|
19
|
+
# @param fields [String] Fields to keep in each row, comma-separated. Use dots for nested fields, such as author.username. A list keeps the field in each item. Case & underscores do not matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics always stay. An unknown name answers 400 unknown_field with the valid names, before any read. The price stays the same. SDK row types then hold only the named fields. A longer URL fails at the edge before Xquik reads it. Pick only the fields you need with `fields` & `omit`.
|
|
20
|
+
#
|
|
21
|
+
# @param omit [String] Fields to drop from each row, comma-separated. It takes the same names as fields. With fields, it drops from the kept fields. A longer URL fails at the edge before Xquik reads it.
|
|
22
|
+
#
|
|
23
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
24
|
+
#
|
|
25
|
+
# @return [XTwitterScraper::Models::X::BroadcastRetrieveResponse]
|
|
26
|
+
#
|
|
27
|
+
# @see XTwitterScraper::Models::X::BroadcastRetrieveParams
|
|
28
|
+
def retrieve(id, params = {})
|
|
29
|
+
parsed, options = XTwitterScraper::Models::X::BroadcastRetrieveParams.dump_request(params)
|
|
30
|
+
query = XTwitterScraper::Internal::Util.encode_query_params(parsed)
|
|
31
|
+
@client.request(
|
|
32
|
+
method: :get,
|
|
33
|
+
path: ["x/broadcasts/%1$s", id],
|
|
34
|
+
query: query,
|
|
35
|
+
model: XTwitterScraper::Models::X::BroadcastRetrieveResponse,
|
|
36
|
+
options: options
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# @api private
|
|
41
|
+
#
|
|
42
|
+
# @param client [XTwitterScraper::Client]
|
|
43
|
+
def initialize(client:)
|
|
44
|
+
@client = client
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# frozen_string_literal: true
|
|
6
|
+
|
|
7
|
+
module XTwitterScraper
|
|
8
|
+
module Resources
|
|
9
|
+
class X
|
|
10
|
+
class Communities
|
|
11
|
+
class Media
|
|
12
|
+
# Returns the tweets with photos or videos on 1 community's Media tab, newest
|
|
13
|
+
# first. Each tweet costs 1 credit.
|
|
14
|
+
#
|
|
15
|
+
# @overload list(id, cursor: nil, page_size: nil, from_user: nil, to_user: nil, mentioning: nil, language: nil, since_date: nil, until_date: nil, media_type: nil, min_likes: nil, min_retweets: nil, min_replies: nil, min_quotes: nil, min_views: nil, min_bookmarks: nil, max_faves: nil, max_retweets: nil, max_replies: nil, max_quotes: nil, blue_verified_only: nil, since_id: nil, max_id: nil, within_time: nil, native_retweets: nil, verified_only: nil, replies: nil, retweets: nil, quotes: nil, exact_phrase: nil, exclude_words: nil, any_words: nil, hashtags: nil, cashtags: nil, url: nil, conversation_id: nil, in_reply_to_tweet_id: nil, quotes_of_tweet_id: nil, retweets_of_tweet_id: nil, fields: nil, omit: nil, request_options: {})
|
|
16
|
+
#
|
|
17
|
+
# @param id [String]
|
|
18
|
+
#
|
|
19
|
+
# @param cursor [String] Pagination cursor for collection results. Also read as next_cursor, next_token, pagination_token or continuation_token.
|
|
20
|
+
#
|
|
21
|
+
# @param page_size [Integer] Items per page. A page holds up to 10,000, so a larger pageSize gets the largest page. Default 20. Source, filters or credits can return fewer. Follow next_cursor for more pages. Its aliases are limit, count, max_results, maxItems, max_items & per_page.
|
|
22
|
+
#
|
|
23
|
+
# @param from_user [String] Filter by author username. Account searches include all of the account's posts & reposts.
|
|
24
|
+
#
|
|
25
|
+
# @param to_user [String] Filter replies sent to a username.
|
|
26
|
+
#
|
|
27
|
+
# @param mentioning [String] Filter tweets mentioning a username.
|
|
28
|
+
#
|
|
29
|
+
# @param language [String] Filter by language. Its alias is `lang`. Language filters work for every language X tags.
|
|
30
|
+
#
|
|
31
|
+
# @param since_date [Date] Start date in YYYY-MM-DD format, as a UTC day. A date means one thing in any common form.
|
|
32
|
+
#
|
|
33
|
+
# @param until_date [Date] End date in YYYY-MM-DD format, as a UTC day, inclusive, so its own posts count.
|
|
34
|
+
#
|
|
35
|
+
# @param media_type [Symbol, XTwitterScraper::Models::X::Communities::MediaListParams::MediaType] Filter media. Its aliases are has_video & has_media.
|
|
36
|
+
#
|
|
37
|
+
# @param min_likes [Integer] Minimum likes. Its aliases are minFaves, min_likes & min_faves.
|
|
38
|
+
#
|
|
39
|
+
# @param min_retweets [Integer] Minimum retweets threshold.
|
|
40
|
+
#
|
|
41
|
+
# @param min_replies [Integer] Minimum replies threshold.
|
|
42
|
+
#
|
|
43
|
+
# @param min_quotes [Integer] Minimum quote count threshold.
|
|
44
|
+
#
|
|
45
|
+
# @param min_views [Integer] Minimum view count threshold.
|
|
46
|
+
#
|
|
47
|
+
# @param min_bookmarks [Integer] Minimum bookmark count threshold.
|
|
48
|
+
#
|
|
49
|
+
# @param max_faves [Integer] Maximum likes threshold. maxLikes & max_likes also work.
|
|
50
|
+
#
|
|
51
|
+
# @param max_retweets [Integer] Maximum retweets threshold.
|
|
52
|
+
#
|
|
53
|
+
# @param max_replies [Integer] Maximum replies threshold.
|
|
54
|
+
#
|
|
55
|
+
# @param max_quotes [Integer] Maximum quotes threshold.
|
|
56
|
+
#
|
|
57
|
+
# @param blue_verified_only [Boolean] Only return tweets from Blue-verified authors.
|
|
58
|
+
#
|
|
59
|
+
# @param since_id [String] Return Tweets whose IDs exceed this ID. Searches accept `since_id` & `max_id` bounds.
|
|
60
|
+
#
|
|
61
|
+
# @param max_id [String] Return Tweets at or below this ID.
|
|
62
|
+
#
|
|
63
|
+
# @param within_time [String] Keeps Tweets from a recent window, such as 90m or 7d. Use a whole number & s, m, h or d.
|
|
64
|
+
#
|
|
65
|
+
# @param native_retweets [Boolean] Only return native reposts.
|
|
66
|
+
#
|
|
67
|
+
# @param verified_only [Boolean] Only return tweets from verified authors.
|
|
68
|
+
#
|
|
69
|
+
# @param replies [Symbol, XTwitterScraper::Models::X::Communities::MediaListParams::Replies] Reply mode. Exclude keeps own-thread replies.
|
|
70
|
+
#
|
|
71
|
+
# @param retweets [Symbol, XTwitterScraper::Models::X::Communities::MediaListParams::Retweets] Only when the caller requests a repost mode.
|
|
72
|
+
#
|
|
73
|
+
# @param quotes [Symbol, XTwitterScraper::Models::X::Communities::MediaListParams::Quotes] Only when the caller requests a quote mode.
|
|
74
|
+
#
|
|
75
|
+
# @param exact_phrase [String] Match this exact phrase, word for word.
|
|
76
|
+
#
|
|
77
|
+
# @param exclude_words [String] Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
78
|
+
#
|
|
79
|
+
# @param any_words [String] Words or quoted phrases where any one can match. Separate with spaces, commas, or lines.
|
|
80
|
+
#
|
|
81
|
+
# @param hashtags [String] Hashtags separated by spaces, commas, or lines.
|
|
82
|
+
#
|
|
83
|
+
# @param cashtags [String] Cashtags separated by spaces, commas, or lines.
|
|
84
|
+
#
|
|
85
|
+
# @param url [String] URL substring or domain filter.
|
|
86
|
+
#
|
|
87
|
+
# @param conversation_id [String] Conversation ID filter.
|
|
88
|
+
#
|
|
89
|
+
# @param in_reply_to_tweet_id [String] Only replies to this tweet ID.
|
|
90
|
+
#
|
|
91
|
+
# @param quotes_of_tweet_id [String] Only quotes of this tweet ID.
|
|
92
|
+
#
|
|
93
|
+
# @param retweets_of_tweet_id [String] Only retweets of this tweet ID.
|
|
94
|
+
#
|
|
95
|
+
# @param fields [String] Fields to keep in each row, comma-separated. Use dots for nested fields, such as author.username. A list keeps the field in each item. Case & underscores do not matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics always stay. An unknown name answers 400 unknown_field with the valid names, before any read. The price stays the same. SDK row types then hold only the named fields. A longer URL fails at the edge before Xquik reads it. Pick only the fields you need with `fields` & `omit`.
|
|
96
|
+
#
|
|
97
|
+
# @param omit [String] Fields to drop from each row, comma-separated. It takes the same names as fields. With fields, it drops from the kept fields. A longer URL fails at the edge before Xquik reads it.
|
|
98
|
+
#
|
|
99
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
100
|
+
#
|
|
101
|
+
# @return [XTwitterScraper::Models::PaginatedTweets]
|
|
102
|
+
#
|
|
103
|
+
# @see XTwitterScraper::Models::X::Communities::MediaListParams
|
|
104
|
+
def list(id, params = {})
|
|
105
|
+
parsed, options = XTwitterScraper::Models::X::Communities::MediaListParams.dump_request(params)
|
|
106
|
+
query = XTwitterScraper::Internal::Util.encode_query_params(parsed)
|
|
107
|
+
@client.request(
|
|
108
|
+
method: :get,
|
|
109
|
+
path: ["x/communities/%1$s/media", id],
|
|
110
|
+
query: query,
|
|
111
|
+
model: XTwitterScraper::Models::PaginatedTweets,
|
|
112
|
+
options: options
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# @api private
|
|
117
|
+
#
|
|
118
|
+
# @param client [XTwitterScraper::Client]
|
|
119
|
+
def initialize(client:)
|
|
120
|
+
@client = client
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|