Skip to content

Commit c636398

Browse files
authored
Merge pull request #14 from cds-1993/patch-1
Update 002_源码实现_同步版本.py
2 parents 654f599 + 0d63c8f commit c636398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

源代码/爬虫入门/09_爬虫入门实战2_动态数据提取/002_源码实现_同步版本.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def send_request(page_start: int, page_size: int) -> Dict[str, Any]:
6969

7070
response = requests.post(url=req_url, params=common_params, json=common_payload_data, headers=headers)
7171
if response.status_code != 200:
72-
raise Exception("发起请求是发生异常,请求发生错误,原因:", response.text)
72+
raise Exception("发起请求时发生异常,请求发生错误,原因:", response.text)
7373
try:
7474
response_dict: Dict = response.json()
7575
return response_dict

0 commit comments

Comments
 (0)