不用response.text,改用response.content response = requests.get(url) bs = BeautifulSoup(response.content, "lxml")