This commit is contained in:
2509165045
2026-06-25 15:53:19 +08:00
parent 4354081314
commit e918de4443

View File

@@ -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")