Skip to content

Commit

Permalink
MOD:修复快手爬虫错误
Browse files Browse the repository at this point in the history
  • Loading branch information
ShilongLee committed Jul 18, 2024
1 parent 76db093 commit 568fe12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/kuaishou/logic/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ async def common_request(data: dict, headers: dict) -> tuple[dict, bool]:

logger.info(
f'url: {url}, request {url}, body={data}, headers={headers}')
response = await requests.post(url, headers, data)
response = await requests.post(url, headers, json=data)
logger.info(
f'url: {url}, body: {data}, response, code: {response.status_code}, body: {response.text}')

Expand Down

0 comments on commit 568fe12

Please sign in to comment.