{"categories":["Python"],"provider_url":"https://hatena.blog","image_url":null,"blog_url":"https://memo.sugyan.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.sugyan.com%2Fentry%2F20081031%2F1225408184\" title=\"\u6700\u4e2d\u9650\u30aa\u30f3\u30e9\u30a4\u30f3\u81ea\u52d5\u5bfe\u6226\u30dc\u30c3\u30c8 - \u3059\u304e\u3083\u30fc\u3093\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u3059\u304e\u3083\u30fc\u3093\u30e1\u30e2","author_url":"https://blog.hatena.ne.jp/sugyan/","author_name":"sugyan","height":"190","version":"1.0","width":"100%","type":"rich","published":"2008-10-31 08:09:44","description":"\u3064\u3044\u306b\u3067\u304d\u305f\uff01\uff01\u306a\u3093\u304b\u5b09\u3057\u3044\u3002 # -*- encoding: utf-8 -*- import mechanize import re from saichugenlib import * # \u5c65\u6b74\u306e\u8aad\u307f\u53d6\u308a\u7528 def str2num(str): a = ['c', 'd', 'h', 's'] return (int(str[1:]) - 1) * 4 + a.index(str[0]) # \u30d6\u30e9\u30a6\u30b6\u8a2d\u5b9a br = mechanize.Browser() br.set_handle_robots(False) # \u30c8\u30c3\u30d7\u30da\u30fc\u30b8 res = br.open('http://saichugen\u2026","url":"https://memo.sugyan.com/entry/20081031/1225408184","provider_name":"Hatena Blog","title":"\u6700\u4e2d\u9650\u30aa\u30f3\u30e9\u30a4\u30f3\u81ea\u52d5\u5bfe\u6226\u30dc\u30c3\u30c8"}