Created
April 22, 2015 02:53
-
-
Save jianghu52/e5a35bfa90313e46ad76 to your computer and use it in GitHub Desktop.
smzdm_fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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