为什么不能完整的爬下来,只能爬取一部分呢
import requestsfrom lxml import etree
headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134',
'Cookie':'UM_distinctid=1691e7566511b9-01c304f8d79384-3350467f-100200-1691e756652261; Hm_lvt_47c19b16e7362939c0067988e0da87cd=1550994210; Hm_lvt_76e3a1369ceacdb865467b1eb8cfa905=1557649931,1557880530,1557883011; Hm_lpvt_76e3a1369ceacdb865467b1eb8cfa905=1557884133'
}
url='http://v.'
resp=requests.get(url,headers=headers)
text=resp.content.decode('utf-8')
print(text)
[此贴子已经被作者于2019-5-15 11:15编辑过]