import requests
from lxml import etree
from bs4 import BeautifulSoup
header = {
'user-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) '
'AppleWebKit/537.36 (KHTML, like Gecko) '
'Chrome/58.0.3029.110 Safari/537.36 SE 2.X MetaSr 1.0'
}
resp=requests.get("http://ziziyy1.com/tv/",headers=header)
resp.encoding='utf-8'
print(resp.text)
resp.text与网页源代码不同