url:http://item.jd.com/2967929.html
import requests
url = 'http://item.jd.com/2967929.html'
try:
r = requests.get(url)
r.raise_for_status()
r.encoding = r.apparent_encoding
print(r.text[:1000])
except:
print("error!")
url:http://item.jd.com/2967929.html
import requests
url = 'http://item.jd.com/2967929.html'
try:
r = requests.get(url)
r.raise_for_status()
r.encoding = r.apparent_encoding
print(r.text[:1000])
except:
print("error!")
让时间为你证明