{"published":"2021-08-20 15:53:16","type":"rich","title":"BeautifulSoup4\u3067\u6539\u884c\u304c\u90aa\u9b54","version":"1.0","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/kopo3/","url":"https://bio-linux-etc.hatenablog.com/entry/2021/08/20/155316","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbio-linux-etc.hatenablog.com%2Fentry%2F2021%2F08%2F20%2F155316\" title=\"BeautifulSoup4\u3067\u6539\u884c\u304c\u90aa\u9b54 - \u3075\u3055\u3075\u3055\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>","blog_title":"\u3075\u3055\u3075\u3055\u65e5\u8a18","blog_url":"https://bio-linux-etc.hatenablog.com/","author_name":"kopo3","width":"100%","provider_url":"https://hatena.blog","height":"190","categories":[],"description":"\u30ef\u30b1\u3042\u3063\u3066\u3001XML\u30d5\u30a1\u30a4\u30eb\u3092parsing\u3057\u3066\u3044\u308b\u306e\u3060\u3051\u308c\u3069\u3001\u5f53\u7136\u81ea\u529b\u3067parsing\u3067\u304d\u308b\u308f\u3051\u304c\u306a\u3044\u306e\u3067\u3001\u8abf\u3079\u3066\u307f\u308b\u3068Python\u306eBeautifulSoup4\u304c\u3088\u3044\u3001\u3068\u306e\u3053\u3068\u3002 \u6700\u521d\u306f\u3088\u304f\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u30cf\u30f3\u30c9\u30eb\u3092 f \u3068\u3059\u308b\u3068\u3001 soup = BeautifulSoup(f, \"xml\") \u3067\u3001XML\u30d5\u30a1\u30a4\u30eb\u81ea\u4f53\u304csoap\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3002\u3053\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f <class 'bs4.BeautifulSoup'> \u3068\u3044\u3046\u30bf\u30a4\u30d7\u3002\u305d\u306e\u307e\u307e\u3002\u3067\u3001\u81ea\u5206\u306eXML\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u308b\u3068\u4e00\u756a\u5927\u304d\u306a\u5206\u985e\u3092\u4f5c\u3063\u3066\u3044\u308b\u306e\u304cTopClass\u3068\u3044\u3046\u30bf\u30b0(\u3057\u304b\u3082\u4e0b\u4f4d\u306b\u306f\u51fa\u73fe\u3057\u306a\u3044)\u306a\u306e\u3067\u3001 for\u2026","image_url":null}