注æï¼è¿½è¨:2013.03.22ï¼ ãããã®æ å ±ã¯å¤ãã®ã§ããã¾ã¯HTTPç³»ã®å¦çã¯requestsã使ã£ãã»ããããã§ãã Requests: HTTP for Humans â Requests 1.1.0 documentation åæ© Web API使ã£ã¦ãã¨ã§ã¦ãã使ãåããã¡ã¢ã æ¹æ³ ã¾ãã¯ãªã¼ã½ããã¯ã¹ã« GET import urllib url = 'http://d.hatena.ne.jp/ymotongpoo' params = urllib.urlencode({'hoge':1, 'fuga':2}) f = urllib.urlopen(url + '?' + params) # paramsã¯hoge=1&fuga=2ã®å½¢ã«ãªã£ã¦ãã print f.read() POST import urllib url = 'http://d.hatena.ne.
{{#tags}}- {{label}}
{{/tags}}