{"provider_name":"Hatena Blog","blog_title":"\u3046\u304a\u3063","author_name":"factal","height":"190","url":"https://factal.hatenadiary.org/entry/20120706/1341565778","version":"1.0","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","lxml"],"image_url":null,"description":"\u4ee5\u4e0b\u306e\u3088\u3046\u306a XML \u304c\u3042\u3063\u305f\u3068\u3059\u308b\u3002 <document> <deleteme>\u3053\u306e\u8981\u7d20\u3092\u30bf\u30b0\u3054\u3068\u6d88\u3057\u305f\u3044\u3002<wac/> \u3042\u3042\u3042\u3042\u3042 </deleteme> </document> \u3053\u3053\u3067\u3001 \u8981\u7d20\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u6d88\u3057\u305f\u3044\u3002 >>> xml = open('sample.xml', 'rb').read() >>> root = lxml.html.fromstring(xml) >>> elements = root.xpath('//deleteme') >>> for e in elements: ... del e ... >>> print root.text_content() \u3053\u306e\u8981\u2026","author_url":"https://blog.hatena.ne.jp/factal/","provider_url":"https://hatena.blog","type":"rich","width":"100%","title":"\u5b50\u8981\u7d20\u3092\u3082\u3064 XML \u306e\u30c6\u30ad\u30b9\u30c8\u3092 lxml \u3067\u6d88\u3057\u305f\u3044","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffactal.hatenadiary.org%2Fentry%2F20120706%2F1341565778\" title=\"\u5b50\u8981\u7d20\u3092\u3082\u3064 XML \u306e\u30c6\u30ad\u30b9\u30c8\u3092 lxml \u3067\u6d88\u3057\u305f\u3044 - \u3046\u304a\u3063\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2012-07-06 18:09:38","blog_url":"https://factal.hatenadiary.org/"}