Skip to content

Instantly share code, notes, and snippets.

@jianghu52
Created April 22, 2015 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jianghu52/e5a35bfa90313e46ad76 to your computer and use it in GitHub Desktop.
Save jianghu52/e5a35bfa90313e46ad76 to your computer and use it in GitHub Desktop.
smzdm_fail
# coding: utf-8
import urllib2
def auto_check():
opener = urllib2.build_opener()
opener.addheaders = [
('User-Agent', 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36')
]
data = opener.open('http://www.smzdm.com/user/login')
if __name__ == '__main__':
auto_check()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment