Whether Python can get the status code of a web page by 404 or 500

From , 5 Years ago, written in Python, viewed 83 times.
URL https://pastebin.vip/view/c5c53759
  1. import urllib
  2. status=urllib.urlopen("http://www.sharejs.com").code
  3. print status
  4.  
  5.  
  6.  
  7.  

Reply to "Whether Python can get the status code of a web page by 404 or 500"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website