mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-20 07:26:47 +00:00
add infoq topic
This commit is contained in:
@@ -15,7 +15,7 @@ def parse(post):
|
||||
def ctx():
|
||||
DEFAULT_HEADERS.update({'Referer': 'https://www.infoq.cn'}) # 必须设置Referer,不然会451错误
|
||||
import json
|
||||
posts = requests.post(f'{domain}/public/v1/my/recommond', data={'size': 20}, headers=DEFAULT_HEADERS)
|
||||
posts = requests.post(f'{domain}/public/v1/my/recommond', json={'size': 20}, headers=DEFAULT_HEADERS)
|
||||
posts = json.loads(posts.text)['data']
|
||||
return {
|
||||
'title': 'infoq',
|
||||
|
||||
Reference in New Issue
Block a user