MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / fetch_article_list

Function fetch_article_list

backup/wangchao.py:130–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129#获取阅读列表
130def fetch_article_list():
131 headers = {
132 'Host': 'xmt.taizhou.com.cn',
133 'User-Agent': 'Mozilla/5.0 (Linux; Android 13; MEIZU 20 Build/QKQ1.190828.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/83.0.4103.101 Mobile Safari/537.36;xsb_wangchao;xsb_wangchao;6.0.2;native_app;6.10.0',
134 'Accept': '*/*',
135 'X-Requested-With': 'com.shangc.tiennews.taizhou',
136 'Sec-Fetch-Site': 'same-origin',
137 'Sec-Fetch-Mode': 'cors',
138 'Sec-Fetch-Dest': 'empty',
139 'Referer': 'https://xmt.taizhou.com.cn/readingAward-v7-3/?gaze_control=01',
140 'Accept-Language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7',
141 'cookie': f'{special_cookie};'
142}
143 url=f'https://xmt.taizhou.com.cn/prod-api/user-read/list/{get_current_date()}'
144 response = requests.get(url, headers=headers)
145 if debug and response.status_code == 200:
146 print('执行任务获取阅读列表')
147 print('下面是访问的url\n',url)
148 print('下面是访问的headers\n',headers)
149 print('下面是返回的response\n',response.headers)
150 msg = response.json()['msg']
151 print(msg)
152 return response.json()
153def encrypt_with_sm2(article_id, account_id):
154 # 获取当前时间戳
155 timestamp = int(time.time() * 1000)

Callers 1

wangchao.pyFile · 0.85

Calls 3

get_current_dateFunction · 0.85
printFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected