diff --git a/1.json b/1.json index 18afde3..79e89ec 100644 --- a/1.json +++ b/1.json @@ -1,31 +1,1315 @@ -{ - 'vs': 'K5K7WsN820mZ9m9C8DH97HODDqzNj6vx', - 'sec-ch-ua-platform': '"Windows"', - 'language': 'zh_CN', - 'sec-ch-ua': '"Not;A=Brand";v="99", "Google Chrome";v="139", "Chromium";v="139"', - 'sec-ch-ua-mobile': '?0', - 'appVersion': '2.0.1', - 'Accept': 'application/json, text/plain, */*', - 'locale': 'zh_CN', - 'terminalCode': 'ea778f2af8f3a418595f4993fe0ed949', - 'Referer': 'https://www.weeaxs.site/', - 'X-SIG': 'fd2c7a52262066131ef4a118122d23e0', - 'sidecar': '013199792959396ff5b6c81006f3a12ad867af9972d26e231d2dc0e113c21d5d95', - 'X-TIMESTAMP': '1762421152641', - 'bundleid': '', - 'U-TOKEN': 'eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiI4MjE2MDlhOS1kMDI3LTRiOTAtOTU0OC1iZGU3YTlmNmRiOWMxMzczNjgzNjU1IiwidWlkIjoidEQzQ1FIaFJUblVYcm5MNFNwckw3UT09Iiwic3ViIjoieXgyMDI1KioqKkBnbWFpbC5jb20iLCJpcCI6IllXb3dNNkVVWnYzamdjOTkwUHVHUFE9PSIsImRpZCI6InVxSnQ1N1N2SVBZcE5oM1MzU3VxcktCVERiaHBoeTN6S2VyMmZVNnF3MktnMk12cVptaUhFNmJ0YSt0OUgrcUEiLCJzdHMiOjAsImlhdCI6MTc2MjQwOTc3NywiZXhwIjoxNzcwMTg1Nzc3LCJwdXNoaWQiOiJvTmpMNm1ab2h4T203V3ZyZlIvcWdBPT0iLCJhdGwiOiIwIiwiaXNzIjoidXBleCJ9.idUb4bjGwoDy2MRZWmaIuNZAwCRAos6t6nt4sAZBw_Urg2Jtuz5sEZQYnZxx0fczg7RG8zm0bzeAqoIRHXWLSEQs366HA55bAIcz_GM12Wik7-zWZ_CVz5VqTVCO1xUUfRX7a-qRB6HfgdUu_f-rlqG8U8l__65sWhEtDZ2mJNk', - 'terminaltype': '1', - 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36', - 'traceId': '869c997d-29cd-490b-b63c-4a95fdff5f83', - ':authority': 'http-gateway2.ngsvsfx.cn', - ':method': 'GET', - ':path': '/api/v1/public/quote/v1/getKlineV2?contractId=10000002&productCode=cmt_ethusdt&priceType=LAST_PRICE&klineType=MINUTE_30&limit=300&timeZone=string&languageType=1&sign=SIGN', - ':scheme': 'https', - 'accept-encoding': 'gzip, deflate, br, zstd', - 'accept-language': 'fi', - 'origin': 'https://www.weeaxs.site', - 'priority': 'u=1, i', - 'sec-fetch-dest': 'empty', - 'sec-fetch-mode': 'cors', - 'sec-fetch-site': 'cross-site' -} +[ + { + 'entryId': 'tweet-1991324563767226826', + 'sortIndex': '1991335611931295744', + 'content': { + 'entryType': 'TimelineTimelineItem', + '__typename': 'TimelineTimelineItem', + 'itemContent': { + 'itemType': 'TimelineTweet', + '__typename': 'TimelineTweet', + 'tweet_results': { + 'result': { + '__typename': 'Tweet', + 'rest_id': '1991324563767226826', + 'core': { + 'user_results': { + 'result': { + '__typename': 'User', + 'id': 'VXNlcjoxNTI4Njk0NjUyMDM0ODc1Mzk0', + 'rest_id': '1528694652034875394', + 'affiliates_highlighted_label': {}, + 'avatar': { + 'image_url': 'https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png' + }, + 'core': { + 'created_at': 'Mon May 23 11:10:07 +0000 2022', + 'name': 'Jagadeesh Hubballi', + 'screen_name': 'JagadeeshHubba3' + }, + 'dm_permissions': { + 'can_dm': True + }, + 'follow_request_sent': False, + 'has_graduated_access': True, + 'is_blue_verified': False, + 'legacy': { + 'default_profile': True, + 'default_profile_image': True, + 'description': '', + 'entities': { + 'description': { + 'urls': [] + } + }, + 'fast_followers_count': 0, + 'favourites_count': 0, + 'followers_count': 0, + 'friends_count': 1, + 'has_custom_timelines': False, + 'is_translator': False, + 'listed_count': 0, + 'media_count': 0, + 'needs_phone_verification': False, + 'normal_followers_count': 0, + 'pinned_tweet_ids_str': [], + 'possibly_sensitive': False, + 'profile_interstitial_type': '', + 'statuses_count': 2, + 'translator_type': 'none', + 'want_retweets': False, + 'withheld_in_countries': [] + }, + 'location': { + 'location': '' + }, + 'media_permissions': { + 'can_media_tag': False + }, + 'parody_commentary_fan_label': 'None', + 'profile_image_shape': 'Circle', + 'profile_bio': { + 'description': '' + }, + 'privacy': { + 'protected': True + }, + 'relationship_perspectives': { + 'following': False + }, + 'tipjar_settings': {}, + 'verification': { + 'verified': False + } + } + } + }, + 'card': { + 'rest_id': 'https://t.co/n1rvyCnRVe', + 'legacy': { + 'binding_values': [ + { + 'key': 'app_star_rating', + 'value': { + 'string_value': '4.01327', + 'type': 'STRING' + } + }, + { + 'key': 'thumbnail_image', + 'value': { + 'image_value': { + 'height': 144, + 'width': 144, + 'url': 'https://pbs.twimg.com/card_img/1989205865573031936/djNLnAgb?format=jpg&name=144x144_2' + }, + 'type': 'IMAGE' + } + }, + { + 'key': 'description', + 'value': { + 'string_value': 'You can contact @webseadds right away.', + 'type': 'STRING' + } + }, + { + 'key': 'domain', + 'value': { + 'string_value': 't.me', + 'type': 'STRING' + } + }, + { + 'key': 'app_is_free', + 'value': { + 'string_value': 'true', + 'type': 'STRING' + } + }, + { + 'key': 'thumbnail_image_large', + 'value': { + 'image_value': { + 'height': 320, + 'width': 320, + 'url': 'https://pbs.twimg.com/card_img/1989205865573031936/djNLnAgb?format=jpg&name=420x420_2' + }, + 'type': 'IMAGE' + } + }, + { + 'key': 'thumbnail_image_original', + 'value': { + 'image_value': { + 'height': 320, + 'width': 320, + 'url': 'https://pbs.twimg.com/card_img/1989205865573031936/djNLnAgb?format=jpg&name=orig' + }, + 'type': 'IMAGE' + } + }, + { + 'key': 'site', + 'value': { + 'scribe_key': 'publisher_id', + 'type': 'USER', + 'user_value': { + 'id_str': '1689053928', + 'path': [] + } + } + }, + { + 'key': 'thumbnail_image_small', + 'value': { + 'image_value': { + 'height': 100, + 'width': 100, + 'url': 'https://pbs.twimg.com/card_img/1989205865573031936/djNLnAgb?format=jpg&name=100x100_2' + }, + 'type': 'IMAGE' + } + }, + { + 'key': 'app_num_ratings', + 'value': { + 'string_value': '241,174', + 'type': 'STRING' + } + }, + { + 'key': 'app_price_amount', + 'value': { + 'string_value': '0.0', + 'type': 'STRING' + } + }, + { + 'key': 'thumbnail_image_x_large', + 'value': { + 'image_value': { + 'height': 320, + 'width': 320, + 'url': 'https://pbs.twimg.com/card_img/1989205865573031936/djNLnAgb?format=png&name=2048x2048_2_exp' + }, + 'type': 'IMAGE' + } + }, + { + 'key': 'vanity_url', + 'value': { + 'scribe_key': 'vanity_url', + 'string_value': 't.me', + 'type': 'STRING' + } + }, + { + 'key': 'app_name', + 'value': { + 'string_value': 'Telegram Messenger', + 'type': 'STRING' + } + }, + { + 'key': 'thumbnail_image_color', + 'value': { + 'image_color_value': { + 'palette': [ + { + 'rgb': { + 'blue': 75, + 'green': 200, + 'red': 6 + }, + 'percentage': 87.26 + }, + { + 'rgb': { + 'blue': 251, + 'green': 252, + 'red': 249 + }, + 'percentage': 8.81 + }, + { + 'rgb': { + 'blue': 180, + 'green': 221, + 'red': 155 + }, + 'percentage': 2.26 + }, + { + 'rgb': { + 'blue': 123, + 'green': 197, + 'red': 78 + }, + 'percentage': 1.66 + } + ] + }, + 'type': 'IMAGE_COLOR' + } + }, + { + 'key': 'title', + 'value': { + 'string_value': 'J Mook', + 'type': 'STRING' + } + }, + { + 'key': 'app_price_currency', + 'value': { + 'string_value': 'USD', + 'type': 'STRING' + } + }, + { + 'key': 'card_url', + 'value': { + 'scribe_key': 'card_url', + 'string_value': 'https://t.co/n1rvyCnRVe', + 'type': 'STRING' + } + } + ], + 'card_platform': { + 'platform': { + 'audience': { + 'name': 'production' + }, + 'device': { + 'name': 'Swift', + 'version': '12' + } + } + }, + 'name': 'summary', + 'url': 'https://t.co/n1rvyCnRVe', + 'user_refs_results': [ + { + 'result': { + '__typename': 'User', + 'id': 'VXNlcjoxNjg5MDUzOTI4', + 'rest_id': '1689053928', + 'affiliates_highlighted_label': {}, + 'avatar': { + 'image_url': 'https://pbs.twimg.com/profile_images/1183117696730390529/LRDASku7_normal.jpg' + }, + 'core': { + 'created_at': 'Wed Aug 21 19:47:05 +0000 2013', + 'name': 'Telegram Messenger', + 'screen_name': 'telegram' + }, + 'dm_permissions': { + 'can_dm': False + }, + 'follow_request_sent': False, + 'has_graduated_access': True, + 'is_blue_verified': True, + 'legacy': { + 'default_profile': True, + 'default_profile_image': False, + 'description': 'Simple, fast, secure – and synced across all your devices. One of the top 5 most-downloaded apps in the world with over 1 billion active users.', + 'entities': { + 'description': { + 'urls': [] + }, + 'url': { + 'urls': [ + { + 'display_url': 'telegram.org', + 'expanded_url': 'http://telegram.org', + 'url': 'https://t.co/zHAc9lS7Jy', + 'indices': [ + 0, + 23 + ] + } + ] + } + }, + 'fast_followers_count': 0, + 'favourites_count': 6761, + 'followers_count': 1897593, + 'friends_count': 9, + 'has_custom_timelines': True, + 'is_translator': False, + 'listed_count': 4513, + 'media_count': 3842, + 'normal_followers_count': 1897593, + 'pinned_tweet_ids_str': [ + '1978460858431733886' + ], + 'possibly_sensitive': False, + 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/1689053928/1392066683', + 'profile_interstitial_type': '', + 'statuses_count': 49919, + 'translator_type': 'none', + 'url': 'https://t.co/zHAc9lS7Jy', + 'want_retweets': False, + 'withheld_in_countries': [] + }, + 'location': { + 'location': '' + }, + 'media_permissions': { + 'can_media_tag': False + }, + 'parody_commentary_fan_label': 'None', + 'profile_image_shape': 'Square', + 'professional': { + 'rest_id': '1649119696312991755', + 'professional_type': 'Business', + 'category': [ + { + 'id': 962, + 'name': 'Mobile Application', + 'icon_name': 'IconBriefcaseStroke' + } + ] + }, + 'profile_bio': { + 'description': 'Simple, fast, secure – and synced across all your devices. One of the top 5 most-downloaded apps in the world with over 1 billion active users.' + }, + 'privacy': { + 'protected': False + }, + 'relationship_perspectives': { + 'following': False + }, + 'tipjar_settings': {}, + 'verification': { + 'verified': False, + 'verified_type': 'Business' + }, + 'profile_description_language': 'en' + } + } + ] + } + }, + 'unmention_data': {}, + 'edit_control': { + 'edit_tweet_ids': [ + '1991324563767226826' + ], + 'editable_until_msecs': '1763607347000', + 'is_edit_eligible': True, + 'edits_remaining': '5' + }, + 'is_translatable': True, + 'views': { + 'count': '4', + 'state': 'EnabledWithCount' + }, + 'source': 'Twitter Web App', + 'grok_analysis_button': True, + 'legacy': { + 'bookmark_count': 0, + 'bookmarked': False, + 'created_at': 'Thu Nov 20 01:55:47 +0000 2025', + 'conversation_id_str': '1991324563767226826', + 'display_text_range': [ + 0, + 74 + ], + 'entities': { + 'hashtags': [], + 'symbols': [], + 'timestamps': [], + 'urls': [ + { + 'display_url': 't.me/webseadds', + 'expanded_url': 'http://t.me/webseadds', + 'url': 'https://t.co/n1rvyCnRVe', + 'indices': [ + 51, + 74 + ] + } + ], + 'user_mentions': [] + }, + 'favorite_count': 0, + 'favorited': False, + 'full_text': 'Websea顶级渠道,注册就可享受websea合约85%返佣,量大可谈,欢迎代理咨询。 TG(飞机):https://t.co/n1rvyCnRVe', + 'is_quote_status': False, + 'lang': 'zh', + 'possibly_sensitive': False, + 'possibly_sensitive_editable': True, + 'quote_count': 0, + 'reply_count': 0, + 'retweet_count': 0, + 'retweeted': False, + 'user_id_str': '1528694652034875394', + 'id_str': '1991324563767226826' + }, + 'quick_promote_eligibility': { + 'eligibility': 'IneligibleNotProfessional' + } + } + }, + 'tweetDisplayType': 'Tweet' + }, + 'clientEventInfo': { + 'component': 'tweet', + 'element': 'tweet', + 'details': { + 'timelinesDetails': { + 'injectionType': 'RankedOrganicTweet', + 'controllerData': 'DAACDAABDAABCgABAAAAAAAAAAAKAAkVNwOvyJQAAgoACgAAAZqfIcS6AAAAAA==' + } + } + } + } + }, + { + 'entryId': 'tweet-1991090703519334688', + 'sortIndex': '1991335611931295743', + 'content': { + 'entryType': 'TimelineTimelineItem', + '__typename': 'TimelineTimelineItem', + 'itemContent': { + 'itemType': 'TimelineTweet', + '__typename': 'TimelineTweet', + 'tweet_results': { + 'result': { + '__typename': 'Tweet', + 'rest_id': '1991090703519334688', + 'core': { + 'user_results': { + 'result': { + '__typename': 'User', + 'id': 'VXNlcjoxNTI4Njk0NjUyMDM0ODc1Mzk0', + 'rest_id': '1528694652034875394', + 'affiliates_highlighted_label': {}, + 'avatar': { + 'image_url': 'https://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png' + }, + 'core': { + 'created_at': 'Mon May 23 11:10:07 +0000 2022', + 'name': 'Jagadeesh Hubballi', + 'screen_name': 'JagadeeshHubba3' + }, + 'dm_permissions': { + 'can_dm': True + }, + 'follow_request_sent': False, + 'has_graduated_access': True, + 'is_blue_verified': False, + 'legacy': { + 'default_profile': True, + 'default_profile_image': True, + 'description': '', + 'entities': { + 'description': { + 'urls': [] + } + }, + 'fast_followers_count': 0, + 'favourites_count': 0, + 'followers_count': 0, + 'friends_count': 1, + 'has_custom_timelines': False, + 'is_translator': False, + 'listed_count': 0, + 'media_count': 0, + 'needs_phone_verification': False, + 'normal_followers_count': 0, + 'pinned_tweet_ids_str': [], + 'possibly_sensitive': False, + 'profile_interstitial_type': '', + 'statuses_count': 2, + 'translator_type': 'none', + 'want_retweets': False, + 'withheld_in_countries': [] + }, + 'location': { + 'location': '' + }, + 'media_permissions': { + 'can_media_tag': False + }, + 'parody_commentary_fan_label': 'None', + 'profile_image_shape': 'Circle', + 'profile_bio': { + 'description': '' + }, + 'privacy': { + 'protected': True + }, + 'relationship_perspectives': { + 'following': False + }, + 'tipjar_settings': {}, + 'verification': { + 'verified': False + } + } + } + }, + 'card': { + 'rest_id': 'https://t.co/n1rvyCnRVe', + 'legacy': { + 'binding_values': [ + { + 'key': 'app_star_rating', + 'value': { + 'string_value': '4.01327', + 'type': 'STRING' + } + }, + { + 'key': 'thumbnail_image', + 'value': { + 'image_value': { + 'height': 144, + 'width': 144, + 'url': 'https://pbs.twimg.com/card_img/1989205865573031936/djNLnAgb?format=jpg&name=144x144_2' + }, + 'type': 'IMAGE' + } + }, + { + 'key': 'description', + 'value': { + 'string_value': 'You can contact @webseadds right away.', + 'type': 'STRING' + } + }, + { + 'key': 'domain', + 'value': { + 'string_value': 't.me', + 'type': 'STRING' + } + }, + { + 'key': 'app_is_free', + 'value': { + 'string_value': 'true', + 'type': 'STRING' + } + }, + { + 'key': 'thumbnail_image_large', + 'value': { + 'image_value': { + 'height': 320, + 'width': 320, + 'url': 'https://pbs.twimg.com/card_img/1989205865573031936/djNLnAgb?format=jpg&name=420x420_2' + }, + 'type': 'IMAGE' + } + }, + { + 'key': 'thumbnail_image_original', + 'value': { + 'image_value': { + 'height': 320, + 'width': 320, + 'url': 'https://pbs.twimg.com/card_img/1989205865573031936/djNLnAgb?format=jpg&name=orig' + }, + 'type': 'IMAGE' + } + }, + { + 'key': 'site', + 'value': { + 'scribe_key': 'publisher_id', + 'type': 'USER', + 'user_value': { + 'id_str': '1689053928', + 'path': [] + } + } + }, + { + 'key': 'thumbnail_image_small', + 'value': { + 'image_value': { + 'height': 100, + 'width': 100, + 'url': 'https://pbs.twimg.com/card_img/1989205865573031936/djNLnAgb?format=jpg&name=100x100_2' + }, + 'type': 'IMAGE' + } + }, + { + 'key': 'app_num_ratings', + 'value': { + 'string_value': '241,174', + 'type': 'STRING' + } + }, + { + 'key': 'app_price_amount', + 'value': { + 'string_value': '0.0', + 'type': 'STRING' + } + }, + { + 'key': 'thumbnail_image_x_large', + 'value': { + 'image_value': { + 'height': 320, + 'width': 320, + 'url': 'https://pbs.twimg.com/card_img/1989205865573031936/djNLnAgb?format=png&name=2048x2048_2_exp' + }, + 'type': 'IMAGE' + } + }, + { + 'key': 'vanity_url', + 'value': { + 'scribe_key': 'vanity_url', + 'string_value': 't.me', + 'type': 'STRING' + } + }, + { + 'key': 'app_name', + 'value': { + 'string_value': 'Telegram Messenger', + 'type': 'STRING' + } + }, + { + 'key': 'thumbnail_image_color', + 'value': { + 'image_color_value': { + 'palette': [ + { + 'rgb': { + 'blue': 75, + 'green': 200, + 'red': 6 + }, + 'percentage': 87.26 + }, + { + 'rgb': { + 'blue': 251, + 'green': 252, + 'red': 249 + }, + 'percentage': 8.81 + }, + { + 'rgb': { + 'blue': 180, + 'green': 221, + 'red': 155 + }, + 'percentage': 2.26 + }, + { + 'rgb': { + 'blue': 123, + 'green': 197, + 'red': 78 + }, + 'percentage': 1.66 + } + ] + }, + 'type': 'IMAGE_COLOR' + } + }, + { + 'key': 'title', + 'value': { + 'string_value': 'J Mook', + 'type': 'STRING' + } + }, + { + 'key': 'app_price_currency', + 'value': { + 'string_value': 'USD', + 'type': 'STRING' + } + }, + { + 'key': 'card_url', + 'value': { + 'scribe_key': 'card_url', + 'string_value': 'https://t.co/n1rvyCnRVe', + 'type': 'STRING' + } + } + ], + 'card_platform': { + 'platform': { + 'audience': { + 'name': 'production' + }, + 'device': { + 'name': 'Swift', + 'version': '12' + } + } + }, + 'name': 'summary', + 'url': 'https://t.co/n1rvyCnRVe', + 'user_refs_results': [ + { + 'result': { + '__typename': 'User', + 'id': 'VXNlcjoxNjg5MDUzOTI4', + 'rest_id': '1689053928', + 'affiliates_highlighted_label': {}, + 'avatar': { + 'image_url': 'https://pbs.twimg.com/profile_images/1183117696730390529/LRDASku7_normal.jpg' + }, + 'core': { + 'created_at': 'Wed Aug 21 19:47:05 +0000 2013', + 'name': 'Telegram Messenger', + 'screen_name': 'telegram' + }, + 'dm_permissions': { + 'can_dm': False + }, + 'follow_request_sent': False, + 'has_graduated_access': True, + 'is_blue_verified': True, + 'legacy': { + 'default_profile': True, + 'default_profile_image': False, + 'description': 'Simple, fast, secure – and synced across all your devices. One of the top 5 most-downloaded apps in the world with over 1 billion active users.', + 'entities': { + 'description': { + 'urls': [] + }, + 'url': { + 'urls': [ + { + 'display_url': 'telegram.org', + 'expanded_url': 'http://telegram.org', + 'url': 'https://t.co/zHAc9lS7Jy', + 'indices': [ + 0, + 23 + ] + } + ] + } + }, + 'fast_followers_count': 0, + 'favourites_count': 6761, + 'followers_count': 1897593, + 'friends_count': 9, + 'has_custom_timelines': True, + 'is_translator': False, + 'listed_count': 4513, + 'media_count': 3842, + 'normal_followers_count': 1897593, + 'pinned_tweet_ids_str': [ + '1978460858431733886' + ], + 'possibly_sensitive': False, + 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/1689053928/1392066683', + 'profile_interstitial_type': '', + 'statuses_count': 49919, + 'translator_type': 'none', + 'url': 'https://t.co/zHAc9lS7Jy', + 'want_retweets': False, + 'withheld_in_countries': [] + }, + 'location': { + 'location': '' + }, + 'media_permissions': { + 'can_media_tag': False + }, + 'parody_commentary_fan_label': 'None', + 'profile_image_shape': 'Square', + 'professional': { + 'rest_id': '1649119696312991755', + 'professional_type': 'Business', + 'category': [ + { + 'id': 962, + 'name': 'Mobile Application', + 'icon_name': 'IconBriefcaseStroke' + } + ] + }, + 'profile_bio': { + 'description': 'Simple, fast, secure – and synced across all your devices. One of the top 5 most-downloaded apps in the world with over 1 billion active users.' + }, + 'privacy': { + 'protected': False + }, + 'relationship_perspectives': { + 'following': False + }, + 'tipjar_settings': {}, + 'verification': { + 'verified': False, + 'verified_type': 'Business' + }, + 'profile_description_language': 'en' + } + } + ] + } + }, + 'unmention_data': {}, + 'edit_control': { + 'edit_tweet_ids': [ + '1991090703519334688' + ], + 'editable_until_msecs': '1763551591000', + 'is_edit_eligible': True, + 'edits_remaining': '5' + }, + 'is_translatable': True, + 'views': { + 'count': '3', + 'state': 'EnabledWithCount' + }, + 'source': 'Twitter Web App', + 'grok_analysis_button': True, + 'legacy': { + 'bookmark_count': 0, + 'bookmarked': False, + 'created_at': 'Wed Nov 19 10:26:31 +0000 2025', + 'conversation_id_str': '1991090703519334688', + 'display_text_range': [ + 0, + 74 + ], + 'entities': { + 'hashtags': [], + 'symbols': [], + 'timestamps': [], + 'urls': [ + { + 'display_url': 't.me/webseadds', + 'expanded_url': 'http://t.me/webseadds', + 'url': 'https://t.co/n1rvyCnRVe', + 'indices': [ + 51, + 74 + ] + } + ], + 'user_mentions': [] + }, + 'favorite_count': 0, + 'favorited': False, + 'full_text': 'Websea顶级渠道,注册就可享受websea合约85%返佣,量大可谈,欢迎代理咨询。 TG(飞机):https://t.co/n1rvyCnRVe', + 'is_quote_status': False, + 'lang': 'zh', + 'possibly_sensitive': False, + 'possibly_sensitive_editable': True, + 'quote_count': 0, + 'reply_count': 0, + 'retweet_count': 0, + 'retweeted': False, + 'user_id_str': '1528694652034875394', + 'id_str': '1991090703519334688' + }, + 'quick_promote_eligibility': { + 'eligibility': 'IneligibleNotProfessional' + } + } + }, + 'tweetDisplayType': 'Tweet' + }, + 'clientEventInfo': { + 'component': 'tweet', + 'element': 'tweet', + 'details': { + 'timelinesDetails': { + 'injectionType': 'RankedOrganicTweet', + 'controllerData': 'DAACDAABDAABCgABAAAAAAAAAAAKAAkVNwOvyJQAAgoACgAAAZqfIcS6AAAAAA==' + } + } + } + } + }, + { + 'entryId': 'who-to-follow-1991335611931295746', + 'sortIndex': '1991335611931295742', + 'content': { + 'entryType': 'TimelineTimelineModule', + '__typename': 'TimelineTimelineModule', + 'items': [ + { + 'entryId': 'who-to-follow-1991335611931295746-user-385926583', + 'item': { + 'itemContent': { + 'itemType': 'TimelineUser', + '__typename': 'TimelineUser', + 'user_results': { + 'result': { + '__typename': 'User', + 'id': 'VXNlcjozODU5MjY1ODM=', + 'rest_id': '385926583', + 'affiliates_highlighted_label': {}, + 'avatar': { + 'image_url': 'https://pbs.twimg.com/profile_images/1956768857802129408/_yPvrw7L_normal.jpg' + }, + 'core': { + 'created_at': 'Thu Oct 06 11:27:58 +0000 2011', + 'name': 'Ashok Gehlot', + 'screen_name': 'ashokgehlot51' + }, + 'dm_permissions': { + 'can_dm': False + }, + 'follow_request_sent': False, + 'has_graduated_access': True, + 'is_blue_verified': True, + 'legacy': { + 'default_profile': False, + 'default_profile_image': False, + 'description': 'Former Chief Minister of Rajasthan, MLA from Sardarpura.', + 'entities': { + 'description': { + 'urls': [] + }, + 'url': { + 'urls': [ + { + 'display_url': 'ashokgehlot.in', + 'expanded_url': 'http://www.ashokgehlot.in', + 'url': 'https://t.co/SAxoc38bQx', + 'indices': [ + 0, + 23 + ] + } + ] + } + }, + 'fast_followers_count': 0, + 'favourites_count': 11231, + 'followers_count': 5114048, + 'friends_count': 274, + 'has_custom_timelines': False, + 'is_translator': False, + 'listed_count': 1500, + 'media_count': 10374, + 'normal_followers_count': 5114048, + 'pinned_tweet_ids_str': [], + 'possibly_sensitive': False, + 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/385926583/1706348801', + 'profile_interstitial_type': '', + 'statuses_count': 39921, + 'translator_type': 'none', + 'url': 'https://t.co/SAxoc38bQx', + 'want_retweets': False, + 'withheld_in_countries': [] + }, + 'location': { + 'location': 'Rajasthan, India' + }, + 'media_permissions': { + 'can_media_tag': False + }, + 'parody_commentary_fan_label': 'None', + 'profile_image_shape': 'Circle', + 'profile_bio': { + 'description': 'Former Chief Minister of Rajasthan, MLA from Sardarpura.' + }, + 'privacy': { + 'protected': False + }, + 'relationship_perspectives': { + 'following': False + }, + 'tipjar_settings': {}, + 'verification': { + 'verified': False + } + } + }, + 'userDisplayType': 'User' + }, + 'clientEventInfo': { + 'component': 'suggest_who_to_follow', + 'element': 'user', + 'details': { + 'timelinesDetails': { + 'injectionType': 'WhoToFollow', + 'controllerData': 'DAACDAACDAABCgABAAAAAAAAAAgAAAAA', + 'sourceData': 'DAABCgABjLL3LBTsrJ0KAAIAAAAAAAAAAAAIAAIAAAB1CAADAAAAAgwABQwAAgwAAgwAAQoAAQAAAAAAAAAIAAAAAAA=' + } + } + } + } + }, + { + 'entryId': 'who-to-follow-1991335611931295746-user-786151699996041218', + 'item': { + 'itemContent': { + 'itemType': 'TimelineUser', + '__typename': 'TimelineUser', + 'user_results': { + 'result': { + '__typename': 'User', + 'id': 'VXNlcjo3ODYxNTE2OTk5OTYwNDEyMTg=', + 'rest_id': '786151699996041218', + 'affiliates_highlighted_label': {}, + 'avatar': { + 'image_url': 'https://pbs.twimg.com/profile_images/1711277033639268352/hxSct2O1_normal.jpg' + }, + 'core': { + 'created_at': 'Wed Oct 12 10:29:06 +0000 2016', + 'name': 'Government of Rajasthan', + 'screen_name': 'RajGovOfficial' + }, + 'dm_permissions': { + 'can_dm': False + }, + 'follow_request_sent': False, + 'has_graduated_access': True, + 'is_blue_verified': True, + 'legacy': { + 'default_profile': False, + 'default_profile_image': False, + 'description': 'Official handle of Government of Rajasthan, राजस्थान सरकार का आधिकारिक अकाउंट', + 'entities': { + 'description': { + 'urls': [] + }, + 'url': { + 'urls': [ + { + 'display_url': 'rajasthan.gov.in', + 'expanded_url': 'http://www.rajasthan.gov.in', + 'url': 'https://t.co/Eu58SsZg8w', + 'indices': [ + 0, + 23 + ] + } + ] + } + }, + 'fast_followers_count': 0, + 'favourites_count': 291, + 'followers_count': 2579088, + 'friends_count': 17, + 'has_custom_timelines': True, + 'is_translator': False, + 'listed_count': 337, + 'media_count': 21632, + 'normal_followers_count': 2579088, + 'pinned_tweet_ids_str': [], + 'possibly_sensitive': False, + 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/786151699996041218/1761559686', + 'profile_interstitial_type': '', + 'statuses_count': 25897, + 'translator_type': 'none', + 'url': 'https://t.co/Eu58SsZg8w', + 'want_retweets': False, + 'withheld_in_countries': [] + }, + 'location': { + 'location': 'Jaipur, India' + }, + 'media_permissions': { + 'can_media_tag': False + }, + 'parody_commentary_fan_label': 'None', + 'profile_image_shape': 'Square', + 'professional': { + 'rest_id': '1510952228307144709', + 'professional_type': 'Business', + 'category': [] + }, + 'profile_bio': { + 'description': 'Official handle of Government of Rajasthan, राजस्थान सरकार का आधिकारिक अकाउंट' + }, + 'privacy': { + 'protected': False + }, + 'relationship_perspectives': { + 'following': False + }, + 'tipjar_settings': {}, + 'verification': { + 'verified': False, + 'verified_type': 'Government' + } + } + }, + 'userDisplayType': 'User' + }, + 'clientEventInfo': { + 'component': 'suggest_who_to_follow', + 'element': 'user', + 'details': { + 'timelinesDetails': { + 'injectionType': 'WhoToFollow', + 'controllerData': 'DAACDAACDAABCgABAAAAAAAAAAgAAAAA', + 'sourceData': 'DAABCgABjLL3LBTsrJ0KAAIAAAAAAAAAAAAIAAIAAAB1CAADAAAAAgwABQwAAgwAAgwAAQoAAQAAAAAAAAAIAAAAAAA=' + } + } + } + } + }, + { + 'entryId': 'who-to-follow-1991335611931295746-user-10671602', + 'item': { + 'itemContent': { + 'itemType': 'TimelineUser', + '__typename': 'TimelineUser', + 'user_results': { + 'result': { + '__typename': 'User', + 'id': 'VXNlcjoxMDY3MTYwMg==', + 'rest_id': '10671602', + 'affiliates_highlighted_label': {}, + 'avatar': { + 'image_url': 'https://pbs.twimg.com/profile_images/1833447364138299392/AXIZsQe4_normal.jpg' + }, + 'core': { + 'created_at': 'Tue Nov 27 22:37:20 +0000 2007', + 'name': 'PlayStation', + 'screen_name': 'PlayStation' + }, + 'dm_permissions': { + 'can_dm': False + }, + 'follow_request_sent': False, + 'has_graduated_access': True, + 'is_blue_verified': True, + 'legacy': { + 'default_profile': False, + 'default_profile_image': False, + 'description': 'Official Sony Interactive Entertainment account. Updates on PS5, PlayStation VR2, PlayStation Plus, PS4 and more. Support: @AskPlayStation', + 'entities': { + 'description': { + 'urls': [] + }, + 'url': { + 'urls': [ + { + 'display_url': 'playstation.com', + 'expanded_url': 'https://www.playstation.com', + 'url': 'https://t.co/OrydDMkek8', + 'indices': [ + 0, + 23 + ] + } + ] + } + }, + 'fast_followers_count': 0, + 'favourites_count': 1482, + 'followers_count': 42666405, + 'friends_count': 742, + 'has_custom_timelines': True, + 'is_translator': False, + 'listed_count': 34294, + 'media_count': 27733, + 'normal_followers_count': 42666405, + 'pinned_tweet_ids_str': [ + '1985331574314045535' + ], + 'possibly_sensitive': False, + 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/10671602/1763109118', + 'profile_interstitial_type': '', + 'statuses_count': 48087, + 'translator_type': 'none', + 'url': 'https://t.co/OrydDMkek8', + 'want_retweets': False, + 'withheld_in_countries': [] + }, + 'location': { + 'location': 'California' + }, + 'media_permissions': { + 'can_media_tag': False + }, + 'parody_commentary_fan_label': 'None', + 'profile_image_shape': 'Square', + 'profile_bio': { + 'description': 'Official Sony Interactive Entertainment account. Updates on PS5, PlayStation VR2, PlayStation Plus, PS4 and more. Support: @AskPlayStation' + }, + 'privacy': { + 'protected': False + }, + 'relationship_perspectives': { + 'following': False + }, + 'tipjar_settings': {}, + 'verification': { + 'verified': False, + 'verified_type': 'Business' + } + } + }, + 'userDisplayType': 'User' + }, + 'clientEventInfo': { + 'component': 'suggest_who_to_follow', + 'element': 'user', + 'details': { + 'timelinesDetails': { + 'injectionType': 'WhoToFollow', + 'sourceData': 'DAABCgABjLL3LBTsrJ0KAAIAAAAAAAAAAAAIAAIAAARgCAADAAAAAgA=' + } + } + } + } + } + ], + 'displayType': 'Vertical', + 'header': { + 'displayType': 'Classic', + 'text': 'Who to follow', + 'sticky': False + }, + 'footer': { + 'displayType': 'Classic', + 'text': 'Show more', + 'landingUrl': { + 'url': 'twitter://connect_people?user_id=1528694652034875394&display_location=profile_wtf_showmore', + 'urlType': 'DeepLink' + } + }, + 'clientEventInfo': { + 'component': 'suggest_who_to_follow', + 'details': { + 'timelinesDetails': { + 'injectionType': 'WhoToFollow', + 'controllerData': 'DAACDAACDAABCgABAAAAAAAAAAgAAAAA', + 'sourceData': 'DAABCgABjLL3LBTsrJ0KAAIAAAAAAAAAAAAIAAIAAAB1CAADAAAAAgwABQwAAgwAAgwAAQoAAQAAAAAAAAAIAAAAAAA=' + } + } + } + } + }, + { + 'entryId': 'cursor-top-1991335611931295745', + 'sortIndex': '1991335611931295745', + 'content': { + 'entryType': 'TimelineTimelineCursor', + '__typename': 'TimelineTimelineCursor', + 'value': 'DAAHCgABG6KlMEHAJxELAAIAAAATMTk5MTMyNDU2Mzc2NzIyNjgyNggAAwAAAAEAAA', + 'cursorType': 'Top' + } + }, + { + 'entryId': 'cursor-bottom-1991335611931295741', + 'sortIndex': '1991335611931295741', + 'content': { + 'entryType': 'TimelineTimelineCursor', + '__typename': 'TimelineTimelineCursor', + 'value': 'DAAHCgABG6KlMEG___0LAAIAAAATMTk5MTA5MDcwMzUxOTMzNDY4OAgAAwAAAAIAAA', + 'cursorType': 'Bottom' + } + } +] diff --git a/models/xstart.py b/models/xstart.py index 0f411fe..d8051ea 100644 --- a/models/xstart.py +++ b/models/xstart.py @@ -6,9 +6,10 @@ from models import db1 class Xstart(Model): id = AutoField(primary_key=True) # 自增主键 bit_id = IntegerField(null=True) - start = CharField(null=True) + start = IntegerField(null=True) x_id = IntegerField(null=True) ip_id = IntegerField(null=True) + url_id = CharField(null=True) class Meta: database = db1 # 所属数据库 diff --git a/test.py b/test.py index 46f3ee7..b8994d2 100644 --- a/test.py +++ b/test.py @@ -1,49 +1,64 @@ import requests -headers = {'vs': '05g7pXj83SRrFp94citJ7BkbjNqFc6kQ', 'language': 'zh_CN', 'sec-ch-ua-platform': '"Windows"', - 'sec-ch-ua': '"Not;A=Brand";v="99", "Google Chrome";v="139", "Chromium";v="139"', 'sec-ch-ua-mobile': '?0', - 'appVersion': '2.0.1', 'Accept': 'application/json, text/plain, */*', 'Content-Type': 'application/json', - 'locale': 'zh_CN', 'terminalCode': 'ea778f2af8f3a418595f4993fe0ed949', 'Referer': 'https://www.weeaxs.site/', - 'X-SIG': '64fbc4638b9132d0639c0864ad7b2631', - 'sidecar': '01752def6506a5c558793e0c6ea8793a0e6defd487fbe009718c20e36c7b5e16fc', - 'X-TIMESTAMP': '1762425944928', 'bundleid': '', - 'U-TOKEN': 'eyJhbGciOiJSUzI1NiJ9.eyJqdGkiOiI4MjE2MDlhOS1kMDI3LTRiOTAtOTU0OC1iZGU3YTlmNmRiOWMxMzczNjgzNjU1IiwidWlkIjoidEQzQ1FIaFJUblVYcm5MNFNwckw3UT09Iiwic3ViIjoieXgyMDI1KioqKkBnbWFpbC5jb20iLCJpcCI6IllXb3dNNkVVWnYzamdjOTkwUHVHUFE9PSIsImRpZCI6InVxSnQ1N1N2SVBZcE5oM1MzU3VxcktCVERiaHBoeTN6S2VyMmZVNnF3MktnMk12cVptaUhFNmJ0YSt0OUgrcUEiLCJzdHMiOjAsImlhdCI6MTc2MjQwOTc3NywiZXhwIjoxNzcwMTg1Nzc3LCJwdXNoaWQiOiJvTmpMNm1ab2h4T203V3ZyZlIvcWdBPT0iLCJhdGwiOiIwIiwiaXNzIjoidXBleCJ9.idUb4bjGwoDy2MRZWmaIuNZAwCRAos6t6nt4sAZBw_Urg2Jtuz5sEZQYnZxx0fczg7RG8zm0bzeAqoIRHXWLSEQs366HA55bAIcz_GM12Wik7-zWZ_CVz5VqTVCO1xUUfRX7a-qRB6HfgdUu_f-rlqG8U8l__65sWhEtDZ2mJNk', - 'terminaltype': '1', - 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36', - 'traceId': '378eb6c9-eb23-4925-a306-d437c3865a87', 'accept-encoding': 'gzip, deflate, br, zstd', - 'accept-language': 'fi', 'content-length': '68', 'origin': 'https://www.weeaxs.site', 'priority': 'u=1, i', - 'sec-fetch-dest': 'empty', 'sec-fetch-mode': 'cors', 'sec-fetch-site': 'cross-site'} - -json_data = { - 'filterCoinIdList': [ - 2, - ], - 'filterContractIdList': [], - 'filterOrderStatusList': [ - 'CANCELED', - 'FILLED', - ], - 'filterOrderTypeList': [], - 'languageType': 1, - 'limit': 20, - 'sign': 'SIGN', - 'timeZone': 'string', +cookies = { + 'guest_id_marketing': 'v1%3A176354098710586324', + 'guest_id_ads': 'v1%3A176354098710586324', + 'guest_id': 'v1%3A176354098710586324', + 'gt': '1991061326962270389', + '__cuid': 'bc4bb3318b8746c4960a0edfb2220910', + 'personalization_id': '"v1_zni2BqKNlpGzMk7sPKb7TQ=="', + 'g_state': '{"i_l":0,"i_ll":1763541027555,"i_b":"vumczuwzuH950z/ce0D0r85AlyqFZdXKjwakaa0Q3OY"}', + 'kdt': 'UsPg3G0YUE9AX1KekidFHURQ3sLU6MxeO0KgEAQx', + 'auth_token': '7775fb70c540a53a25bf1f0cd46f3cdc20a1d02c', + 'ct0': 'c6fc686e2feb83cbd8f08f2e38e2261b05b67b3746bc0c10adf50a7ed3fc0946995fc4c38401bde2a3f34adeb7bcf83e94a35a5bfce0f7ede162301ff303fcb78b1907ba4566f3069c02972749f719b8', + 'att': '1-SKx1SRcfVBgEIiHRpu5ZTxfSRLbmpbnUOZ9mMQWi', + 'twid': 'u%3D1528694652034875394', + 'lang': 'en', + '__cf_bm': 'hwKktTMrrT16g.Eupzx3L5Q1RkycVS0bopGHPlEGi8o-1763606210.1419973-1.0.1.1-I.kWkIZwO.KM3mg8xf14I5ndINV63tz9hRYAqy_7Cs0DCh_lR_AOG9UFK6mUqKm5FIBpXyNSHjSEPKP6wSMlRN103lj_8QWAXhEnqV9Xk7GJqb0LUueVH1j4Q8Eq3F6u', } -response = requests.post( - 'https://http-gateway2.ngsvsfx.cn/api/v1/private/order/v2/getHistoryOrderPage', +headers = { + 'accept': '*/*', + 'accept-language': 'en-US,en;q=0.9', + 'authorization': 'Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA', + 'cache-control': 'no-cache', + 'content-type': 'application/json', + 'dnt': '1', + 'pragma': 'no-cache', + 'priority': 'u=1, i', + 'referer': 'https://x.com/JagadeeshHubba3', + 'sec-ch-ua': '"Chromium";v="140", "Not=A?Brand";v="24", "Google Chrome";v="140"', + 'sec-ch-ua-mobile': '?0', + 'sec-ch-ua-platform': '"Windows"', + 'sec-fetch-dest': 'empty', + 'sec-fetch-mode': 'cors', + 'sec-fetch-site': 'same-origin', + 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36', + 'x-client-transaction-id': 'cforl8McAciujd9vK8bXw0NJX7cBMczX3+rDSnXU3SWD6Nnm9IqlSr5LtJ7Jmn27NiJqvnW0b/nXyTJykFpXZ0pTuU1mcg', + 'x-csrf-token': 'c6fc686e2feb83cbd8f08f2e38e2261b05b67b3746bc0c10adf50a7ed3fc0946995fc4c38401bde2a3f34adeb7bcf83e94a35a5bfce0f7ede162301ff303fcb78b1907ba4566f3069c02972749f719b8', + 'x-twitter-active-user': 'yes', + 'x-twitter-auth-type': 'OAuth2Session', + 'x-twitter-client-language': 'en', + 'x-xp-forwarded-for': 'b1d57f4ffda0ecfb39dbf4b1ead15e7950587f64103ecba2f31a4026c56f9d1457780d41080fb47e8508903974f4c44118fd9c7037b0a006e051b0e750bcecdfec6e7278438cbdc92c3e957124c35a869b4b1eec498ae784c5961dedbdbcf96baf6e92090400ffb4d7b980b4a965acb18b3e97f729d4864c8a1b0afc6ddaf9ca179a0741824472bcdeab611904e469eec5407fdb86a3b277b4a80994124da61318c5a59b29b12bdc5522de3cddfd682a8cbd51ef5abf12d2ca1efbbc06f1e247c9021109970a00de0f62cd3726da858620c251185d1a934c50850d413f3524cedafa387cd1b2b86f697abb64a95d2612fab8803b342e45065ab7ea', + # 'cookie': 'guest_id_marketing=v1%3A176354098710586324; guest_id_ads=v1%3A176354098710586324; guest_id=v1%3A176354098710586324; gt=1991061326962270389; __cuid=bc4bb3318b8746c4960a0edfb2220910; personalization_id="v1_zni2BqKNlpGzMk7sPKb7TQ=="; g_state={"i_l":0,"i_ll":1763541027555,"i_b":"vumczuwzuH950z/ce0D0r85AlyqFZdXKjwakaa0Q3OY"}; kdt=UsPg3G0YUE9AX1KekidFHURQ3sLU6MxeO0KgEAQx; auth_token=7775fb70c540a53a25bf1f0cd46f3cdc20a1d02c; ct0=c6fc686e2feb83cbd8f08f2e38e2261b05b67b3746bc0c10adf50a7ed3fc0946995fc4c38401bde2a3f34adeb7bcf83e94a35a5bfce0f7ede162301ff303fcb78b1907ba4566f3069c02972749f719b8; att=1-SKx1SRcfVBgEIiHRpu5ZTxfSRLbmpbnUOZ9mMQWi; twid=u%3D1528694652034875394; lang=en; __cf_bm=hwKktTMrrT16g.Eupzx3L5Q1RkycVS0bopGHPlEGi8o-1763606210.1419973-1.0.1.1-I.kWkIZwO.KM3mg8xf14I5ndINV63tz9hRYAqy_7Cs0DCh_lR_AOG9UFK6mUqKm5FIBpXyNSHjSEPKP6wSMlRN103lj_8QWAXhEnqV9Xk7GJqb0LUueVH1j4Q8Eq3F6u', +} + +params = { + 'variables': '{"userId":"1528694652034875394","count":20,"includePromotedContent":true,"withQuickPromoteEligibilityTweetFields":true,"withVoice":true}', + 'features': '{"rweb_video_screen_enabled":false,"profile_label_improvements_pcf_label_in_post_enabled":true,"responsive_web_profile_redirect_enabled":false,"rweb_tipjar_consumption_enabled":true,"verified_phone_label_enabled":false,"creator_subscriptions_tweet_preview_api_enabled":true,"responsive_web_graphql_timeline_navigation_enabled":true,"responsive_web_graphql_skip_user_profile_image_extensions_enabled":false,"premium_content_api_read_enabled":false,"communities_web_enable_tweet_community_results_fetch":true,"c9s_tweet_anatomy_moderator_badge_enabled":true,"responsive_web_grok_analyze_button_fetch_trends_enabled":false,"responsive_web_grok_analyze_post_followups_enabled":true,"responsive_web_jetfuel_frame":true,"responsive_web_grok_share_attachment_enabled":true,"articles_preview_enabled":true,"responsive_web_edit_tweet_api_enabled":true,"graphql_is_translatable_rweb_tweet_is_translatable_enabled":true,"view_counts_everywhere_api_enabled":true,"longform_notetweets_consumption_enabled":true,"responsive_web_twitter_article_tweet_consumption_enabled":true,"tweet_awards_web_tipping_enabled":false,"responsive_web_grok_show_grok_translated_post":false,"responsive_web_grok_analysis_button_from_backend":true,"creator_subscriptions_quote_tweet_preview_enabled":false,"freedom_of_speech_not_reach_fetch_enabled":true,"standardized_nudges_misinfo":true,"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":true,"longform_notetweets_rich_text_read_enabled":true,"longform_notetweets_inline_media_enabled":true,"responsive_web_grok_image_annotation_enabled":true,"responsive_web_grok_imagine_annotation_enabled":true,"responsive_web_grok_community_note_auto_translation_is_enabled":false,"responsive_web_enhance_cards_enabled":false}', + 'fieldToggles': '{"withArticlePlainText":false}', +} + +response = requests.get( + 'https://x.com/i/api/graphql/lZRf8IC-GTuGxDwcsHW8aw/UserTweets', + params=params, + cookies=cookies, headers=headers, - json=json_data, ) -for i in response.json()["data"]["dataList"]: - print(i) +url_id = "" +for i in response.json()["data"]['user']['result']["timeline"]['timeline']["instructions"][1]["entries"]: + if "tweet" in i["entryId"]: + url_id += i["sortIndex"] + ";" -# Note: json_data will not be serialized by requests -# exactly as it was in the original request. -# data = '{"filterCoinIdList":[2],"filterContractIdList":[],"filterOrderStatusList":["CANCELED","FILLED"],"filterOrderTypeList":[],"languageType":1,"limit":20,"sign":"SIGN","timeZone":"string"}' -# response = requests.post( -# 'https://http-gateway2.ngsvsfx.cn/api/v1/private/order/v2/getHistoryOrderPage', -# headers=headers, -# data=data, -# ) +print(url_id) \ No newline at end of file diff --git a/推特/main.py b/推特/main.py index 6e5ff78..485ba66 100644 --- a/推特/main.py +++ b/推特/main.py @@ -270,6 +270,22 @@ class Hub_Web: time.sleep(15) + def get_urls(self): + + tab = self.page.new_tab() + tab.listen.start("https://x.com/i/api/graphql") + + tab.get(url="https://x.com/i/api/graphql") + + url_id = "" + res = tab.listen.wait() # 等待并获取一个数据包 + for i in res.response.body["data"]['user']['result']["timeline"]['timeline']["instructions"][1]["entries"]: + if "tweet" in i["entryId"]: + url_id += i["sortIndex"] + ";" + + self.xstart_info.url_id = url_id + self.xstart_info.save() + def action(self): self.ips_info = Ips.select().order_by(fn.Rand()).get()