Pixel Pedals of Tomakomai

北海道苫小牧市出身の初老の日常

mechanize

さっきのエントリでぶっ込んだばかりのmechanizeを使ってみました。

>>> import mechanize
>>> br = mechanize.Browser()
>>> br.open("http://d.hatena.ne.jp/hiratara/")
<response_seek_wrapper at 0x1305198 whose wrapped object = <closeable_response at 0x1301f58 whose fp = <socket._fileobject object at 0x12ff378>>>
>>> print br.title()
a geek

いいですね!!