Getãªã¯ã¨ã¹ã >>> import urllib2 >>> r = urllib2.urlopen("http://www.yahoo.co.jp") Postãªã¯ã¨ã¹ã >>> import urllib >>> query = {"name":name, "password":password} # éä¿¡ãããã¼ã¿ >>> query = urllib.urlencode(query ) # URLã¨ã³ã³ã¼ã >>> r = urllib2.urlopen("http://www.hatena.ne.jp/login", query) ã¬ã¹ãã³ã¹ãªãã¸ã§ã¯ãã®ã¡ã½ãã >>> r = urllib2.urlopen("http://d.hatena.ne.jp/yumimue/edit") >>> r.code, r.msg # ã¬ã¹ãã³ã¹ã³ã¼ãã¨ã¡ãã»ã¼ã¸ (200, 'OK')
{{#tags}}- {{label}}
{{/tags}}