diff --git a/q2_1_crawler/q2_1.py b/q2_1_crawler/q2_1.py index c968ddd..c355ad5 100644 --- a/q2_1_crawler/q2_1.py +++ b/q2_1_crawler/q2_1.py @@ -3,7 +3,7 @@ from bs4 import BeautifulSoup as bs import json header={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36 Edg/149.0.0.0'} url="https://exam.detr.top/exam-b/movies" -resp=requests.get(url,headers=header) +resp=requests.get(url,headers=header).text resp.encoding="utf-8" #print(resp.text) soup=bs(resp.text,"html.parser")