{"url":"https://chrono-meter.hatenadiary.org/entry/20070725/p1","published":"2007-07-25 00:00:00","type":"rich","description":"\u6b63\u76f4\u3069\u3046\u304b\u3068\u601d\u3046\u3088\u3002 \u304d\u3061\u3093\u3068\u3057\u3066\u306a\u3044 XML \u306e\u89e3\u6790\u306f BeautifulSoup \u3067\u3084\u308b\u65b9\u304c\u697d\u3002 \u30a4\u30f3\u30dd\u30fc\u30c8 Python 2.5 \u304b\u3089\u306f\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u306a\u3063\u305f\u306e\u3067\u5834\u6240\u304c\u9055\u3046\u3089\u3057\u3044\u3002 try: from xml.etree import ElementTree except: from elementtree import ElementTree \u6587\u5b57\u5217\u304b\u3089\u89e3\u6790 root = ElementTree.fromstring(contents) \u30a8\u30ec\u30e1\u30f3\u30c8 \u771f\u507d\u5024\u306f\u5e38\u306b False \u306b\u306a\u308b\u3063\u307d\u3044 #\u30bf\u30b0\u540d \u3057\u3070\u3057\u3070\u540d\u524d\u7a7a\u9593\u304c\u4ed8\u304f\u306e\u3067\u4f7f\u3044\u306b\u304f\u3044 e.tag #\u5c5e\u6027 e.attrib #\u4e2d\u8eab e.\u2026","image_url":null,"blog_title":"chrono-meter\u306e\u65e5\u8a18","blog_url":"https://chrono-meter.hatenadiary.org/","title":" elementtree","author_url":"https://blog.hatena.ne.jp/chrono-meter/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchrono-meter.hatenadiary.org%2Fentry%2F20070725%2Fp1\" title=\" elementtree - chrono-meter\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"author_name":"chrono-meter","height":"190","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","width":"100%","version":"1.0"}