平衡点
2009/01/12
_ twitter-notifier で 400
twitter の更新にはZenTwitter を愛用しています. で, 閲覧には TwitterNotifier を使用していたのですが...
$ python twitter-notifier.py [02:56:34] checking update Traceback (most recent call last): File "twitter-notifier.py", line 61, in check_update e = parse(file=urllib2.urlopen(r)) File "/usr/lib/python2.5/urllib2.py", line 124, in urlopen return _opener.open(url, data) File "/usr/lib/python2.5/urllib2.py", line 387, in open response = meth(req, response) File "/usr/lib/python2.5/urllib2.py", line 498, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.5/urllib2.py", line 419, in error result = self._call_chain(*args) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "/usr/lib/python2.5/urllib2.py", line 823, in http_error_401 url, req, headers) File "/usr/lib/python2.5/urllib2.py", line 801, in http_error_auth_reqed return self.retry_http_basic_auth(host, req, realm) File "/usr/lib/python2.5/urllib2.py", line 811, in retry_http_basic_auth return self.parent.open(req) File "/usr/lib/python2.5/urllib2.py", line 387, in open response = meth(req, response) File "/usr/lib/python2.5/urllib2.py", line 498, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.5/urllib2.py", line 425, in error return self._call_chain(*args) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 400: Bad Request
...うーん.
多分簡単な事なんだろうけれど, python 触った事ないんです...