2007-12-01ãã1ã¶æéã®è¨äºä¸è¦§
ãã¾ã¾ã§æ£ã ããããã¦: pypy pypi - Google æ¤ç´¢ ã¨ãè¨ããã¦ãã¾ããã æ°ãã¤ãããè¨ãããªããªã£ã¦ã¾ããï¼ï¼ï¼ ãã¿ã«åºæ¥ãªããªã£ã¦ã¡ãã£ã¨æ®å¿µã§ãâ¦â¦orz
æ¬å®¶ã® trunk ã§ã¯æ¢ã«ä¿®æ£ããã¦ãã¨æãã¦ãããã¾ãã⪠ã§ããã¨ããããåããªãã®ãä½ãªã®ã§ å¿æ¥å¦ç½® import urllib2 def __http_response(self, request, response): code, msg, hdrs = response.code, response.msg, response.info() if not (200 <=â¦
åå ä¸æã§ã½ã¼ã¹è¿½ã£ããã¦ããâ¦â¦ class HTTPErrorProcessor(BaseHandler): """Process HTTP error responses.""" handler_order = 1000 # after all other processing def http_response(self, request, response): code, msg, hdrs = response.code, respâ¦
urllib 㧠POST ã§ã¢ã¯ã»ã¹ããå ´å㯠params = { x : "1", y : "2" } urllib2.openurl(url,urllib.urlencode(params)) ã§ãGET ã§ã¢ã¯ã»ã¹ããæããã©ã¡ã¼ã¿ã¯ã©ããããã ããï¼ ã¨ãæã£ã¦ãããid:nishiohirokazu ããã«æãã¦ããã£ã params = { x : â¦
PySyck ãã¤ã³ã¹ãã¼ã«ãããã¨æã£ãã ãããã syck ãå ¥ã£ã¦ããªããã¨ã«æ°ãã¤ã㦠$ sudo port install syckã£ã¦æã£ãã ---> Attempting to fetch syck-0.55.tar.gz from http://rubyforge.org/frs/download.php/4492Python ãã使ãããã®ã« Rubyfoâ¦
æ¨æ¥ã®ä½ã£ã¦ãã ãã¦ã¼ã¶ã¼ãåå¨ãã¦ãªãã¨ãã®å¦çå ¥ããªãã¨ãªãã ã¨ãèãã¦ã¹ãã¼ã¿ã¹ã³ã¼ãè¦ã¦ 404 ã ã£ãã åå¨ããªãã¦ã¼ã¶ã¼ã§è¯ããâ¦â¦ ã¨ãèã㦠urllib ã調ã¹ã¦ãã urllib2 ã¨ãè¨ãã®ã 次ã®ãã¼ã¸ã«çºè¦ãã¾ããã ãã¸ï¼ï¼ãªãããã£â¦
iKnow ã®é²æã Python ããåå¾ã§ããããã«ãã¦ã¿ã¾ããã #!/usr/bin/env python # -*- coding: utf-8 -*- import urllib from BeautifulSoup import BeautifulSoup import re class Iknow: def __init__(self,username): b = BeautifulSoup(urllib.urlopâ¦