{"author_url":"https://blog.hatena.ne.jp/aipacommander/","provider_url":"https://hatena.blog","height":"190","width":"100%","blog_url":"https://www.aipacommander.com/","blog_title":"IT\u306e\u968a\u9577\u306e\u30d6\u30ed\u30b0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.aipacommander.com%2Fentry%2F2016%2F09%2F24%2F141323\" title=\"\u3010Python2.7\u3011BeautifulSoup\u3067\uff08\u500b\u4eba\u7684\u306b\uff09\u3088\u304f\u4f7f\u3046\u30b3\u30fc\u30c9\u3092\u30e1\u30e2 - IT\u306e\u968a\u9577\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2016-09-24 14:13:23","title":"\u3010Python2.7\u3011BeautifulSoup\u3067\uff08\u500b\u4eba\u7684\u306b\uff09\u3088\u304f\u4f7f\u3046\u30b3\u30fc\u30c9\u3092\u30e1\u30e2","type":"rich","version":"1.0","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/98194825/1514241549987688","url":"https://www.aipacommander.com/entry/2016/09/24/141323","author_name":"aipacommander","categories":["Python","Python2"],"description":"\u3068\u3044\u3063\u3066\u3082\u3001\u521d\u6b69\u7684\u306a\u521d\u6b69\u306a\u3093\u3067\u3059\u3051\u3069\u3082\u3002\u3002\u3002 \u6e96\u5099 from bs4 import BeautifulSoup \u3053\u308c\u3067\u304a\uff4b\u3002\u307e\u3060\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u306a\u3089pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u306d\u3002 \u4eca\u56de\u306furl\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u305d\u308c\u3092BeautifulSoup\u3078\u6e21\u3059\u3002 import requests response = requests.get('http://www.yahoo.co.jp') soup = BeautifulSoup(response.text) \u304a\uff4b\u3002 \u3061\u306a\u307f\u306b\u3001html\u30d5\u30a1\u30a4\u30eb\u3092\u30c7\u30a3\u30b9\u30af\u304b\u3089read\u3057\u3066\u6e21\u3059\u306e\u3082\u304a\uff4b\u3002 file_path = 'html\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9' f = o\u2026"}