remove bbwc realtime slug for category

This commit is contained in:
Hiller Liao
2024-12-22 16:15:26 +08:00
parent b29a24f79e
commit bbf4f79cc9

View File

@@ -17,7 +17,7 @@ def parse(post):
def ctx(category=''):
url = f'https://api.bbwc.cn/web/home/articlelist/device/30/p/1'
url = f'{domain}/web/home/articlelist/device/30/p/1'
posts = requests.get(url)
print(posts)
posts = json.loads(posts.text)['data']['list']