经过测试,来源:网络
import requests
url='https://product.suning.com/0000000000/601751996.html?srcpoint=pcshoujiym01_pcshoujiym01_42659115509_prod03'try:
r = requests.get(url)
r.raise_for_status()
r.enconding = r.apparent_encoding
print(r.text[:1000])
except:
print("抓取失败")