微博同城热搜榜
切换地域时修改经纬度。
测试地址:点击跳转
郑州测试地址:点击跳转
GET请求接口
url = "https://api.weibo.cn/2/guest/page"
params = {
"page_interrupt_enable": "1",
"orifid": "231278_plaza",
"uicode": "10000011",
"moduleID": "708",
"checktoken": "",
"just_followed": "false",
"wb_version": "5017",
"card25_new_style": "1",
"lcardid": "hot_search",
"c": "android",
"s": "0e6207f3",
"ft": "0",
"ua": "",
"wm": "2468_1001",
"lat": "34.757975",
"lon": "113.665412",
"uid": "2011530131950",
"v_f": "2",
"v_p": "89",
"from": "10B6095010",
"oriuicode": "10000512",
"containerid": "106003type=25&t=3&disable_hot=1&filter_type=region",
"ignore_inturrpted_error": "true",
"no_location_permission": "0",
"luicode": "10000512"
}
抖音同城热搜榜
GET接口,board_sub_type切换地域,board_sub_type是身份证前6位。只支持市级ID。
测试地址:点击跳转
url = "https://aweme.snssdk.com/aweme/v1/hot/search/list/"
params = {
"detail_list": "1",
"mac_address": "E4:54:E8:AE:E4:DC",
"source": "0",
"current_word": "",
"words_in_panel": " ",
"trend_entry_word": "",
"board_type": "1",
"board_sub_type": "411300",
"need_board_tab": "false",
"hotlist_param": "",
"os_api": "22",
"device_type": "MI 9",
"ssmix": "a",
"manifest_version_code": "130901",
"dpi": "320",
"uuid": "863254944222826",
"app_name": "aweme",
"version_name": "13.9.0",
"ts": "1636705844",
"cpu_support64": "false",
"app_type": "normal",
"appTheme": "dark",
"ac": "wifi",
"host_abi": "armeabi-v7a",
"update_version_code": "13909900",
"channel": "tengxun_new",
"_rticket": "1636705845513",
"device_platform": "android",
"iid": "",
"version_code": "130900",
"cdid": "921f35e0-5efc-409a-b3b9-51fc6209a829",
"openudid": "e3be29a75f28a5c2",
"device_id": "",
"resolution": "900*1600",
"os_version": "5.1.1",
"language": "zh",
"device_brand": "Android",
"aid": "1128",
"mcc_mnc": "46007"
}
百度同城热搜榜
GET接口
https://mbd.baidu.com/newspage/data/cityhotlist?city_code=268
城市city_code在这看:https://mbd.baidu.com/newspage/data/newcitylist?city_code=268
谷歌热搜榜单
地址:https://trends.google.com/trends/trendingsearches/realtime?geo=BR&hl=en-US&category=all
接口都是GET请求。geo参数是国家英文名大写简称,可切换国家。
1、先请求 https://trends.google.com/trends/api/realtimetrends?hl=en-US&tz=-480&cat=all&fi=0&fs=0&geo=BR&ri=300&rs=20&sort=0
2、根据响应Json中的trendingStoryIds,依次构造Url
3、比如ID为BR_lnk_nr9_hQAAAADhuM_pt,则Url为https://trends.google.com/trends/api/stories/BR_lnk_nr9_hQAAAADhuM_pt?hl=en-US&tz=-480
本文含有隐藏内容,请 开通VIP 后查看