import requests from bs4 import BeautifulSoup URL = '' Headers = { '' } response = requests.get(url=URL, headers=Headers) if response.status_code!=200: print(f"爬取失败,状态码是{response.status_code}") else: response.encoding ='utf-8' # print(response.text)
python爬虫复习
于 2023-10-17 22:29:48 首次发布