{"id":3161,"date":"2021-01-26T21:30:50","date_gmt":"2021-01-26T12:30:50","guid":{"rendered":"https://freelance.indieverse.co.jp/media/?p=3161"},"modified":"2026-10-07T10:58:00","modified_gmt":"2026-10-07T01:58:00","slug":"python-beautifulsoup","status":"publish","type":"post","link":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup","title":{"rendered":"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~"},"content":{"rendered":"<p>こんにちは、Indieverse Freelance編集部のDAIです。</p>\n<ul>\n<li>Pythonでスクレイピングしてみたい</li>\n<li>そのためにBeautifulSoupを利用したい</li>\n</ul>\n<p>という方は多いのではないのでしょうか。</p>\n<p>そこで今回は、BeautifulSoupを利用した、簡単なスクレイピングの方法について解説したいと思います。</p>\n<h2>BeautifulSoupとは</h2>\n<p>BeautifulSoupとは、HTMLやXMLからデータを引き出すことができるライブラリです。</p>\n<blockquote><p>公式ドキュメント：<a href=\"https://www.crummy.com/software/BeautifulSoup/bs4/doc/\">Beautiful Soup Documentation</a><br />\n日本語役：<a href=\"http://kondou.com/BS4/\">Beautiful Soup 4.2.0 Doc. 日本語訳 (2013-11-19最終更新) »</a></p></blockquote>\n<p>公式ドキュメントを引用しつつ、、簡単に使い方を紹介します。</p>\n<p><strong>前提：BeautifulSoupだけでスクレイピングをできるわけではありません</strong></p>\n<p>まず、前提としてBeautifulSoupだけではスクレイピングできません。</p>\n<p>一般的には、RequestsというHTTP通信ができるモジュールを利用して、HTMLのデータをスクレイピングしてきた後に、そのHTMLを整形するためにBeautifulSoupが利用されます。</p>\n<p>ちなみにCSVにエクスポートする場合は、Pandasのようなライブラリが使われます。</p>\n<p>&nbsp;</p>\n<p><img decoding=\"async\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/10/再現性のある営業組織の構築-6.png\" alt=\"\" width=\"960\" height=\"720\" class=\"alignnone size-full wp-image-3162\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/10/再現性のある営業組織の構築-6.png 960w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/10/再現性のある営業組織の構築-6-300x225.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/10/再現性のある営業組織の構築-6-768x576.png 768w\" sizes=\"(max-width: 960px) 100vw, 960px\" /></p>\n<h2>BeautifulSoupの基本的な使い方</h2>\n<p>BeautifulSoupでよく使うメソッドをまとめてみます。</p>\n<p><strong>BeautifulSoupのインストール</strong></p>\n<p>BeautifulSoupをインストールします。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>pip install beautifulsoup4</code></pre>\n</div>\n<p><strong>BeautifulSoupのインポートと初期化</strong></p>\n<p>BeautifulSoupをインポートします。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>from bs4 import BeautifulSoup</code></pre>\n</div>\n<p><strong>HTMLを読み込む</strong></p>\n<p>実際にHTMLを読み込みます。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code><span class=\"hljs-comment\"># こちらで用意したHTML</span><span>\r\n\r\nhtml_doc = </span><span class=\"hljs-string\">\"\"</span><span class=\"hljs-string\">\"\r\n&lt;html&gt;&lt;head&gt;&lt;title&gt;The Dormouse's story&lt;/title&gt;&lt;/head&gt;\r\n&lt;body&gt;\r\n&lt;p class=\"</span><span>title</span><span class=\"hljs-string\">\"&gt;&lt;b&gt;The Dormouse's story&lt;/b&gt;&lt;/p&gt;\r\n&lt;p class=\"</span><span>story</span><span class=\"hljs-string\">\"&gt;Once upon a time there were three little sisters; and their names were\r\n&lt;a href=\"</span><span class=\"hljs-symbol\">http:</span><span>/</span><span class=\"hljs-regexp\">/example.com/elsie</span><span class=\"hljs-string\">\" class=\"</span><span>sister</span><span class=\"hljs-string\">\" id=\"</span><span>link1</span><span class=\"hljs-string\">\"&gt;Elsie&lt;/a&gt;,\r\n&lt;a href=\"</span><span class=\"hljs-symbol\">http:</span><span>/</span><span class=\"hljs-regexp\">/example.com/lacie</span><span class=\"hljs-string\">\" class=\"</span><span>sister</span><span class=\"hljs-string\">\" id=\"</span><span>link2</span><span class=\"hljs-string\">\"&gt;Lacie&lt;/a&gt; and\r\n&lt;a href=\"</span><span class=\"hljs-symbol\">http:</span><span>/</span><span class=\"hljs-regexp\">/example.com/tillie</span><span class=\"hljs-string\">\" class=\"</span><span>sister</span><span class=\"hljs-string\">\" id=\"</span><span>link3</span><span class=\"hljs-string\">\"&gt;Tillie&lt;/a&gt;;\r\nand they lived at the bottom of a well.&lt;/p&gt;\r\n&lt;p class=\"</span><span>story</span><span class=\"hljs-string\">\"&gt;...&lt;/p&gt;\r\n\"</span><span class=\"hljs-string\">\"\"</span><span>\r\n\r\n</span><span class=\"hljs-comment\"># BeautifulSoupの初期化</span><span>\r\n\r\nsoup = BeautifulSoup(html_doc, </span><span class=\"hljs-string\">'html.parser'</span><span>) </span><span class=\"hljs-comment\"># BeautifulSoupの初期化</span></code></pre>\n</div>\n<p><strong>HTMLファイルを整形する</strong></p>\n<p>普通にHTMLを読み込むと、整形されていないので、みやすいようにインデントされた形にします。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>print(soup.prettify()) # HTMLをインデントすることができます。</code></pre>\n</div>\n<p name=\"6AtZZ\">こんな感じで表示されます。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code><span>&lt;html&gt;\r\n&lt;head&gt;\r\n &lt;title&gt;\r\n  The Dormouse's story\r\n &lt;/title&gt;\r\n&lt;/head&gt;\r\n&lt;body&gt;\r\n &lt;p class=\"title\"&gt;\r\n  &lt;b&gt;\r\n   The Dormouse's story\r\n  &lt;/b&gt;\r\n &lt;/p&gt;\r\n &lt;p class=\"story\"&gt;\r\n  Once upon a time there were three little sisters; and their names were\r\n  &lt;a class=\"sister\" href=\"http://example.com/elsie\" id=\"link1\"&gt;\r\n   Elsie\r\n  &lt;/a&gt;\r\n  ,\r\n  &lt;a class=\"sister\" href=\"http://example.com/lacie\" id=\"link2\"&gt;\r\n   Lacie\r\n  &lt;/a&gt;\r\n  and\r\n  &lt;a class=\"sister\" href=\"http://example.com/tillie\" id=\"link3\"&gt;\r\n   Tillie\r\n  &lt;/a&gt;\r\n  ;\r\nand they lived at the bottom of a well.\r\n &lt;/p&gt;\r\n &lt;p class=\"story\"&gt;\r\n  ...\r\n &lt;/p&gt;\r\n&lt;/body&gt;\r\n&lt;/html&gt;</span></code></pre>\n</div>\n<p name=\"6AtZZ\"><strong>中のタグの内容を抽出する</strong></p>\n<p name=\"6AtZZ\">titleタグの内容を取りたい場合は、soup.titleで取得できます。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>soup.title</code>#<span>&lt;title&gt;The Dormouse's story&lt;/title&gt;が抽出される</span></pre>\n</div>\n<p name=\"WCTJZ\"><strong>タグの要素だけ出力したい場合</strong></p>\n<p name=\"WCTJZ\"> titleタグの中身の文字だけを取りたい場合は、soup.title.stringで取得できます。</p>\n<p name=\"WCTJZ\">例：The Dormouse&#8217;s story</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>soup.title.string\r\n# The Dormouse's storyが出力される</code></pre>\n</div>\n<h2>複数のタグを取得する</h2>\n<p>複数のタグを取得する場合は、find_allメソッドを利用します。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>soup.find_all(\"a\")</code> <span>#[&lt;a </span><span class=\"hljs-class\"><span class=\"hljs-keyword\">class</span>=\"<span class=\"hljs-title\">sister</span>\" <span class=\"hljs-title\">href</span>=\"<span class=\"hljs-title\">http</span>:</span><span class=\"hljs-comment\">//example.com/elsie\" id=\"link1\"&gt;Elsie&lt;/a&gt;,</span><span> &lt;a </span><span class=\"hljs-class\"><span class=\"hljs-keyword\">class</span>=\"<span class=\"hljs-title\">sister</span>\" <span class=\"hljs-title\">href</span>=\"<span class=\"hljs-title\">http</span>:</span><span class=\"hljs-comment\">//example.com/lacie\" id=\"link2\"&gt;Lacie&lt;/a&gt;,</span><span> &lt;a </span><span class=\"hljs-class\"><span class=\"hljs-keyword\">class</span>=\"<span class=\"hljs-title\">sister</span>\" <span class=\"hljs-title\">href</span>=\"<span class=\"hljs-title\">http</span>:</span><span class=\"hljs-comment\">//example.com/tillie\" id=\"link3\"&gt;Tillie&lt;/a&gt;] が出力される</span></pre>\n</div>\n<p>&nbsp;</p>\n<h2>応用 BeautifulSoupでスクレイピングする</h2>\n<p>では、実際にBeautifulSoupでスクレイピングしてみましょう。</p>\n<p>今回は、PRTimesのプレスリリースを、一括ダウンロードすることをゴールにしていきましょう。</p>\n<p><strong>PRTimesのプレスリリースを一括ダウンロードする</strong></p>\n<p>まず、Requestsを利用して、PRTimesのプレスリリースのXMLデータを取得します。</p>\n<p><a href=\"https://prtimes.jp/companyrdf.php?company_id=20729\">株式会社プログリットのプレスリリース・ニュースリリース</a></p>\n<p><strong>RequestsでXMLファイルを読み込む</strong></p>\n<p>以下のように、HTMLファイルに該当するデータが変数に代入されていることを仮定します。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>import requests\r\n\r\nurl = \"https://prtimes.jp/companyrdf.php?company_id=20729\"\r\nres = requests.get(url).text</code></pre>\n</div>\n<p><strong>BeautifulSoupでHTMLを読み込む</strong></p>\n<p>これらのHTMLを、BeautifulSoupで利用できるようにします。</p>\n<ul>\n<li>#1: ライブラリをインポートします</li>\n<li>#2: HTMLを読み込みます</li>\n</ul>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>from bs4 import BeautifulSoup #1\r\nsoup = BeautifulSoup(res, 'html.parser') #2</code></pre>\n<div>中身を確認する場合は、printしてあげます。</div>\n<div></div>\n<div>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>print (soup)</code></pre>\n</div>\n</div>\n<div>出力結果はこんな感じになります。</div>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>&lt;rdf:RDF xmlns=\"http://purl.org/rss/1.0/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:content=\"http://purl.org/rss/1.0/modules/content/\" xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" xml:language=\"ja\"&gt;&lt;channel rdf:about=\"https://prtimes.jp/company.20729.rdf\"&gt;&lt;title&gt;株式会社プログリット【プレスリリース】 by PR TIMES&lt;/title&gt;&lt;link&gt;https://prtimes.jp&lt;/link&gt;&lt;dc:create&gt;info@prtimes.jp&lt;/dc:create&gt;&lt;dc:rights&gt;Copyright (c) PR TIMES Inc. All Rights Reserved.&lt;/dc:rights&gt;&lt;dc:date&gt;2019-10-19T12:49:39+09:00&lt;/dc:date&gt;&lt;dc:language&gt;ja-JP&lt;/dc:language&gt;&lt;description&gt;PR TIMES｜株式会社プログリットのプレスリリース・ニュースリリース。&lt;/description&gt;&lt;items&gt;&lt;rdf:Seq&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000042.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000040.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000041.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000038.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000039.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000037.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000036.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000035.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000034.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000033.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000032.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000031.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000030.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000029.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000028.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000027.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000026.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000025.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000024.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000022.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000023.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000021.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000019.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000017.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000016.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000014.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000013.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000012.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000011.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000010.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000009.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000007.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"https://prtimes.jp/main/html/rd/p/000000006.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"http://prtimes.jp/main/html/rd/p/000000005.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"http://prtimes.jp/main/html/rd/p/000000004.000020729.html\"/&gt;&lt;rdf:li rdf:resource=\"http://prtimes.jp/main/html/rd/p/000000003.000020729.html\"/&gt;&lt;/rdf:Seq&gt;&lt;/items&gt;&lt;/channel&gt;&lt;item rdf:about=\"https://prtimes.jp/main/html/rd/p/000000042.000020729.html\"&gt;&lt;title&gt;株式会社プログリットがプライバシーマークを取得&lt;/title&gt;&lt;link&gt;https://prtimes.jp/main/html/rd/p/000000042.000020729.html&lt;/link&gt;&lt;description&gt;[株式会社プログリット] [画像1: https://prtimes.jp/i/20729/42/resize/ ] プライバシーマーク取得の背景 　弊社は2016年9月に創業してから、英語コーチングプログラム「プログリット」で今までに6,000名以上の生徒様の英語力...&lt;/description&gt;&lt;dc:corp&gt;株式会社プログリット&lt;/dc:corp&gt;&lt;dc:date&gt;2019-10-16T12:10:00+09:00&lt;/dc:date&gt;&lt;date&gt;2019-10-16&lt;/date&gt;&lt;/item&gt;&lt;item rdf:about=\"https://prtimes.jp/main/html/rd/p/000000040.000020729.html\"&gt;&lt;title&gt;英語コーチング「プログリット」がフリーランス向け支援パッケージ「ITプロトータルサポート」にて新提携サービスをリリース開始！&lt;/title&gt;&lt;link&gt;https://prtimes.jp/main/html/rd/p/000000040.000020729.html&lt;/link&gt;&lt;description&gt;[株式会社プログリット]   [画像1: https://prtimes.jp/i/20729/40/resize/ ]   提携サービス開始の背景 　株式会社ITプロパートナーズが提供する「ITプロパートナーズ」には、30,000名以上もの起業家・フリーラ...&lt;/description&gt;&lt;dc:corp&gt;株式会社プログリット&lt;/dc:corp&gt;&lt;dc:date&gt;2019-10-08T10:30:00+09:00&lt;/dc:date&gt;&lt;date&gt;2019-10-08&lt;/date&gt;&lt;/item&gt;&lt;item rdf:about=\"https://prtimes.jp/main/html/rd/p/000000041.000020729.html\"&gt;&lt;title&gt;英語コーチング「プログリット」ビジネス英会話コースが厚生労働大臣指定「一般教育訓練給付制度」の対象講座に&lt;/title&gt;&lt;link&gt;https://prtimes.jp/main/html/rd/p/000000041.000020729.html&lt;/link&gt;&lt;description&gt;[株式会社プログリット] [画像1: https://prtimes.jp/i/20729/41/resize/ ] 対象講座の概要 　プログリットが展開しているコースのうち、「ビジネス英会話コース（12週）」が厚生労働大臣指定の一般教育訓練給付制度対象講座と...&lt;/description&gt;&lt;dc:corp&gt;株式会社プログリット&lt;/dc:corp&gt;&lt;dc:date&gt;201</code></pre>\n</div>\n</div>\n</div>\n</div>\n<div></div>\n<div class=\"hcb_wrap\">\n<p><strong>BeautifulSoupでHTMLを見やすくする (soup.prettify())</strong></p>\n<p>次に、BeautifulSoupでHTMLを見やすくします。普通にprintすると、取得したHTMLがひどく見えにくいので、prittifyメソッドを利用して、見やすくします。<br />\n出力結果は違いますが、こんな感じでHTML/XMLが見やすい形でインデントされて表示されます。</p>\n<ul>\n<li>#1: soup.prettifyメソッドを利用して、HTMLを見やすくします（インデントつきで見えるようにします）</li>\n</ul>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>print(soup.prettify())</code></pre>\n</div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code> <span>&lt;?xml version=\"1.0\" encoding=\"UTF-8\" ?&gt;\r\n</span><span>...\r\n&lt;title&gt;株式会社プログリットがプライバシーマークを取得&lt;/title&gt;\r\n&lt;link/&gt;</span><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https://prtimes.jp/main/html/rd/p/000000042.000020729.html\">https://prtimes.jp/main/html/rd/p/000000042.000020729.html</a><span>\r\n&lt;description&gt;[株式会社プログリット]\r\n[画像1: </span><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https://prtimes.jp/i/20729/42/resize/\">https://prtimes.jp/i/20729/42/resize/</a><span> ]\r\n\r\n\r\n\r\nプライバシーマーク取得の背景\r\n\r\n　弊社は2016年9月に創業してから、英語コーチングプログラム「プログリット」で今までに6,000名以上の生徒様の英語力...&lt;/description&gt;\r\n&lt;dc:corp&gt;株式会社プログリット&lt;/dc:corp&gt;\r\n&lt;dc:date&gt;2019-10-16T12:10:00+09:00&lt;/dc:date&gt;\r\n&lt;date&gt;2019-10-16&lt;/date&gt;\r\n&lt;/item&gt;\r\n&lt;item rdf:about=\"</span><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https://prtimes.jp/main/html/rd/p/000000040.000020729.html\">https://prtimes.jp/main/html/rd/p/000000040.000020729.html</a><span>\"&gt;\r\n&lt;title&gt;英語コーチング「プログリット」がフリーランス向け支援パッケージ「ITプロトータルサポート」にて新提携サービスをリリース開始！&lt;/title&gt;\r\n&lt;link/&gt;</span><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https://prtimes.jp/main/html/rd/p/000000040.000020729.html\">https://prtimes.jp/main/html/rd/p/000000040.000020729.html</a><span>\r\n&lt;description&gt;[株式会社プログリット]\r\n&amp;amp;nbsp;\r\n\r\n[画像1: </span><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https://prtimes.jp/i/20729/40/resize/\">https://prtimes.jp/i/20729/40/resize/</a><span> ]\r\n</span><span>...\r\n　現在、多くの日本企業が海外進出拡大に強い意欲を持っていたり、海外との取引を増加させようとしています。日本...&lt;/description&gt;\r\n&lt;dc:corp&gt;株式会社プログリット&lt;/dc:corp&gt;\r\n&lt;dc:date&gt;2019-08-01T16:30:00+09:00&lt;/dc:date&gt;\r\n&lt;date&gt;2019-08-01&lt;/date&gt;\r\n&lt;/item&gt;\r\n&lt;item rdf:about=\"</span><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https://prtimes.jp/main/html/rd/p/000000032.000020729.html\">https://prtimes.jp/main/html/rd/p/000000032.000020729.html</a><span>\"&gt;\r\n&lt;title&gt;株式会社GRIT、事業拡大に伴う本社移転のお知らせ　～新本社のコンセプトは「融合」～&lt;/title&gt;\r\n&lt;link/&gt;</span><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https://prtimes.jp/main/html/rd/p/000000032.000020729.html\">https://prtimes.jp/main/html/rd/p/000000032.000020729.html</a><span>\r\n&lt;description&gt;[株式会社プログリット]\r\n&amp;amp;nbsp;\r\n...\r\n</span><span>&lt;dc:corp&gt;株式会社プログリット&lt;/dc:corp&gt;\r\n&lt;dc:date&gt;2019-06-20T17:48:42+09:00&lt;/dc:date&gt;\r\n&lt;date&gt;2019-06-20&lt;/date&gt;\r\n&lt;/item&gt;\r\n&lt;item rdf:about=\"</span><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https://prtimes.jp/main/html/rd/p/000000031.000020729.html\">https://prtimes.jp/main/html/rd/p/000000031.000020729.html</a><span>\"&gt;\r\n&lt;title&gt;英語コーチング「PROGRIT(プログリット)」７月１日（月）六本木、大阪・梅田に２校舎同時オープン&lt;/title&gt;\r\n&lt;link/&gt;</span><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https://prtimes.jp/main/html/rd/p/000000031.000020729.html\">https://prtimes.jp/main/html/rd/p/000000031.000020729.html</a><span>\r\n&lt;description&gt;[株式会社プログリット]\r\n</span><span>...\r\n&lt;date&gt;2016-08-22&lt;/date&gt;\r\n&lt;/item&gt;\r\n&lt;/rdf:rdf&gt;</span></code></pre>\n</div>\n</div>\n<p><strong>HTMLの中身を取得する</strong></p>\n<p>次に、HTMLの中身を取得します。</p>\n<ul>\n<li>プレス名(title)</li>\n<li>概要（description）</li>\n<li>日付date)</li>\n</ul>\n<p>をそれぞれ取得してみましょう。</p>\n<p>上記のXMLを見る限り、itemタグの中にそれぞれtitle, description, dateが入っていますね。</p>\n<p>なので、まずはitemを一つ一つ取得します。</p>\n<p>複数のタグをリスト形式で取得する場合は、find_allメソッドを利用します。</p>\n<ul>\n<li>#1: find_all(&#8220;タグ名&#8221;)：タグ名に合致するXML/HTMLをリスト形式で取得する</li>\n</ul>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>items = soup.find_all(\"item\") #1</code></pre>\n</div>\n<p>それぞれfor文で回すと、それぞれのitemを1つ1つ取得することができます。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>for item in items:\r\n  print (item)</code></pre>\n<p>item以下にあるtitleなどのタグを取得したい場合は、以下のように取得します。</p>\n<div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>for item in items:\r\n  print (item.title)\r\n  print (item.description)\r\n  print (item.date)\r\n</code></pre>\n<p>ただし、これだとHTMLのタグの部分も取得してしまうので、中身だけ取得する場合はstringを利用します。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>for item in items:\r\n  print (item.title.string)\r\n  print (item.description.string)\r\n  print (item.date.string)\r\n\r\n</code></pre>\n<p>出力結果は以下のようになります。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code><span>株式会社プログリットがプライバシーマークを取得\r\n[株式会社プログリット]\r\n[画像1: </span><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https://prtimes.jp/i/20729/42/resize/\">https://prtimes.jp/i/20729/42/resize/</a><span> ]\r\nプライバシーマーク取得の背景...\r\n2019-10-16</span></code></pre>\n</div>\n</div>\n</div>\n<p>こんな感じで簡単にスクレイピングすることができるようになります！</p>\n<h2>より本格的にPythonを学びたいなら</h2>\n<p>Aidemyがおすすめです！</p>\n<h2>Aidemy(アイデミー)の紹介</h2>\n<p>まずはじめに、人工知能を学べるプログラミング学習サービス<strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>のご紹介をします。</p>\n<h3>Aidemy(アイデミー)とは？</h3>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-846\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy.png\" alt=\"\" width=\"1278\" height=\"500\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy.png 1278w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-300x117.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1024x401.png 1024w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-768x300.png 768w\" sizes=\"(max-width: 1278px) 100vw, 1278px\" /></p>\n<p><strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>は、<strong>人工知能特化型プログラミング学習サービス</strong>です</p>\n<ul></ul>\n<p>日本を代表するリーディングカンパニーにも、アイデミーの教材が法人研修で利用されています。</p>\n<ul></ul>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-847\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company.png\" alt=\"\" width=\"1539\" height=\"563\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company.png 1539w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company-300x110.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company-1024x375.png 1024w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company-768x281.png 768w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company-1536x562.png 1536w\" sizes=\"(max-width: 1539px) 100vw, 1539px\" /></p>\n<p><strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>の特徴としては、ほかのAIプログラミングスクールと異なり、現場でも使われるプロフェッショナルなスキルを学べます。根拠としては、</p>\n<ul>\n<li>東京大学発で、自動運転の世界的権威である、東大の加藤教授が監修</li>\n<li>早稲田大学・大手上場企業にもサービス提供を行っている</li>\n<li>アイデミーで学習した結果、実際にAIプロジェクトを回している企業もあり</li>\n</ul>\n<p>となっています。</p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h3>Aidemy（アイデミー）ってどんなプログラミングスクールなの？</h3>\n<p><strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>は、AIに特化したプログラミングスクールです。特徴としては、</p>\n<ul>\n<li>完全ネット完結で、どこでも受講できる唯一のAIプログラミングスクール</li>\n<li>24時間以内返信のチャットサポートで、困った時にいつでも質問ができる。課題の添削も実施。</li>\n<li>テレビ電話形式でのメンタリングサポートで、気になることはその場で即解決。</li>\n<li>Aidemyが提供する全16種類すべてのコースが受け放題。</li>\n</ul>\n<p>となっています。</p>\n<p>実際に受講者さんも、海外の方や、地方在住の人が多いです。</p>\n<p>今回インタビューしたJackさんも、もともと関西からAidemyを受講され、転職に成功されてから東京にいらっしゃいました。</p>\n<h4>24時間以内返信のチャットサポートで、困った時にいつでも質問ができる。課題の添削も実施。</h4>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-864\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/support.jpg\" alt=\"\" width=\"1000\" height=\"600\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/support.jpg 1000w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/support-300x180.jpg 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/support-768x461.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></p>\n<p><strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>を受講すると、Slackページに参加することができます。そのSlackページでは、学習している際に質問やキャリア相談等も気軽に行うことができます。</p>\n<h4>テレビ電話形式でのメンタリングサポートで、気になることはその場で即解決。</h4>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-865\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/video.jpg\" alt=\"\" width=\"1000\" height=\"600\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/video.jpg 1000w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/video-300x180.jpg 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/video-768x461.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></p>\n<p><strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>では、チャットサポートだけでは難しいような課題も、テレビ形式でのメンタリングサポートで解決することができます。</p>\n<p>例えば、「環境構築を自分でやってみたいけど、何から質問したらいいのかわからず困っている」ようなときってあると思うのですが、こういうときもサクッとテレビ電話形式のメンタリングサポートだと解決できちゃいますね。</p>\n<h4>Aidemyが提供する全16種類すべてのコースが受け放題。</h4>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-870\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1.png\" alt=\"\" width=\"2692\" height=\"8043\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1.png 2560w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1-100x300.png 100w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1-343x1024.png 343w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1-768x2295.png 768w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1-514x1536.png 514w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1-685x2048.png 685w\" sizes=\"(max-width: 2692px) 100vw, 2692px\" /></p>\n<p>Aidemy （アイデミー）を受講すると、Aidemy（オンライン上でAIを学ぶことができるWebサイト）のコースをすべて受け放題となります。</p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h2>Aidemy（アイデミー）ではどんなコースが学べるの？</h2>\n<ul></ul>\n<p>さて、アイデミーではどんなコースが学べるのでしょうか。中の人しか見れないコンテンツを、今回は公開してみたいと思います。</p>\n<h4>選べる5つのコース(2018/11月現在)</h4>\n<p>アイデミーで受講できるコースは、4つのコースがあります。</p>\n<ul>\n<li>データ分析コース</li>\n<li>自然言語処理コース</li>\n<li>AIアプリ開発コース</li>\n<li>カスタマイズコース</li>\n<li>LINE Bot開発コース</li>\n</ul>\n<p>順にご紹介しますね。</p>\n<h4>データ分析コース</h4>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-859\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/titanic.jpg\" alt=\"\" width=\"1000\" height=\"600\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/titanic.jpg 1000w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/titanic-300x180.jpg 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/titanic-768x461.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></p>\n<p>「データ分析コース」では、AIプログラミング未経験者でもデータ分析を筋道立てて学ぶことができ、自身で取得したデータから、統計分析や機械学習による予測モデルを作成することを最終目標としています。</p>\n<p>学習内容としては、以下のコンテンツを学習することができます。</p>\n<ul>\n<li>Python3基礎</li>\n<li>Pythonのデータの前処理ライブラリ「Pandas」</li>\n<li>Pythonのグラフ描画ライブラリ「Matplotlib」</li>\n<li>データスクレイピング／Web APIからのデータ取得</li>\n<li>機械学習概論</li>\n<li>教師あり学習（分類）</li>\n<li>教師あり学習（回帰）</li>\n<li>教師なし学習</li>\n<li>応用課題：タイタニック号の乗客データで機械学習を利用した生存率を予測</li>\n<li>最終課題：オリジナルデータを分析した統計解析記事</li>\n</ul>\n<p>データ分析コースでは、実際にWeb上のデータを収集して、データの前処理を行い、機械学習で予測モデルを組み立てるところから学習することができます。</p>\n<p>最後には、データ分析コンペであるKaggleで、データの前処理から予測モデルを立てるところまでを学習することができます。</p>\n<p>最後には実際に自分自身でオリジナルのデータを取得して、学習を進めることができるように、ゼロからデータ取得して、分析した結果を記事にして提出する課題を行います。</p>\n<p>オススメのポイントは、実際のデータを利用して、自分の環境で前処理を行い、分析する力をつけることができる点です。このコースを学ぶと、以下のことができるようになります。</p>\n<ul>\n<li>自分自身が持っているデータを、分析できる形に整形したい！</li>\n<li>自身のデータを分析して、よりビジネス的に有利なインサイトを見出したい！</li>\n<li>機会学習の見識が深まる</li>\n<li>データ分析の流れをゼロから学ぶことができる</li>\n</ul>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h4>自然言語処理コース</h4>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-861\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/自然言語.png\" alt=\"\" width=\"1000\" height=\"560\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/自然言語.png 1000w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/自然言語-300x168.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/自然言語-768x430.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></p>\n<p>「自然言語処理コース」は自然言語処理に特化したコースです。プログラミング未経験者でもPythonによるプログラミングの基礎から段階を踏んで学ぶことにより、最終的には自然言語処理を用いた統計的予測モデルの作成ができるようになることを目指します。さらに、オリジナルのデータを取得するスクレイピングから、自然言語処理を利用した株価予測までができるようになります。</p>\n<p>自然言語処理コースのカリキュラムは、</p>\n<ul>\n<li>Python3基礎</li>\n<li>Pythonのデータの前処理ライブラリ「Pandas」</li>\n<li>Pythonのグラフ描画ライブラリ「Matplotlib」</li>\n<li>データスクレイピング／Web APIからのデータ取得</li>\n<li>機械学習概論</li>\n<li>教師あり学習（分類）</li>\n<li>教師あり学習（回帰）</li>\n<li>自然言語処理</li>\n<li>応用課題： Twitterのデータから株価予測しよう</li>\n<li>最終課題： オリジナルデータから、株価予測しよう</li>\n</ul>\n<h4>AIアプリ開発コース</h4>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-860\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/ai.png\" alt=\"\" width=\"1000\" height=\"560\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/ai.png 1000w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/ai-300x168.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/ai-768x430.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></p>\n<p>「アプリ開発コース」は画像認識の機械学習に特化したコースです。プログラミング未経験者でもPythonによるプログラミングの基礎から段階を踏んで学ぶことにより、最終的には機械学習を用いた画像認識分野のコーディングができるようになることを目指します。さらに、作成したコードをアプリケーションとしてリリースする手順も学べるため、自分が作りたいアプリケーションを自由に作成できるようになります。</p>\n<p>学習内容としては、</p>\n<ul>\n<li>HTML</li>\n<li>CSS</li>\n<li>JavaScript</li>\n<li>jQuery</li>\n<li>ChartJS</li>\n<li>Flask</li>\n<li>ディープラーニングを用いた画像認識</li>\n<li>Heroku</li>\n<li>GitHub</li>\n</ul>\n<p>などと、Web系のプログラミングを学びつつ、かつディープラーニングを学べます。</p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h4>LINEチャットボット開発コース</h4>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-862\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/line.png\" alt=\"\" width=\"1200\" height=\"930\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/line.png 1200w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/line-300x233.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/line-1024x794.png 1024w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/line-768x595.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" /></p>\n<p>LINEチャットボット開発コースは画像認識技術とLINEチャットボットの開発に特化したコースです。プログラミング未経験者でも実践的なアプリケーション開発が比較的簡単なLINEチャットボットをマスターします。また、近年機械学習の中でも最も実務に応用されている分野である、画像認識技術を実装できるようになります。</p>\n<p>できるようになることとしては、</p>\n<ul>\n<li>LINE Messaging APIを使用してLINEチャットボットを作成できます。</li>\n<li>様々なAPIを駆使したLINEチャットボットを作成できます。</li>\n<li>CNNによる画像認識の実装を学ぶことができます。</li>\n<li>CNNを実装し、画像認識を行うLINEチャットボットを作成できます。</li>\n</ul>\n<p>学習内容は、</p>\n<ul>\n<li>Python3基礎</li>\n<li>NumPy</li>\n<li>Pandas</li>\n<li>データクレンジング</li>\n<li>データハンドリング</li>\n<li>機械学習概論</li>\n<li>教師あり学習(回帰)</li>\n<li>教師あり学習(分類)</li>\n<li>教師なし学習</li>\n<li>ディープラーニング基礎</li>\n<li>深層学習画像認識</li>\n<li>CNN</li>\n<li>男女画像認識</li>\n<li>LINEチャットボット基礎</li>\n</ul>\n<p>となっています。</p>\n<h4>基本的にすべて学べる「受け放題」のカスタマイズ制</h4>\n<p>アイデミーとほかの企業のサービスと根本的に異なるのは、「どのコースも受け放題」ということです。</p>\n<p>Aidemy （アイデミー）では、基本的には後述する5つのコースを選択して受講することになっています。</p>\n<p>しかし、そのコースの中でも余裕があれば、Aidemy （アイデミー）が提供するすべてのコースを受け放題となっています。もちろんどんなに多くのコースを受けても、料金はまったくかわりません。</p>\n<ul>\n<li>AIアプリ開発コースの内容と、自然言語処理コースの内容も両方学びたいなぁ</li>\n</ul>\n<p>ということも可能です。</p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<ul></ul>\n<h3>Aidemy(アイデミー)の学習ってどうやって進めるの？</h3>\n<p>アイデミーを受講する場合は、以下のステップにしたがって進めます。</p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-867\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ.png\" alt=\"\" width=\"1300\" height=\"2329\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ.png 1300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ-167x300.png 167w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ-572x1024.png 572w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ-768x1376.png 768w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ-857x1536.png 857w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ-1143x2048.png 1143w\" sizes=\"(max-width: 1300px) 100vw, 1300px\" /></p>\n<h4>まずは無料カウンセリング</h4>\n<p>まず、受講する前に無料カウンセリングを必ず受けます。</p>\n<ol>\n<li>日程を調整</li>\n<li>名前、メールアドレス、電話番号を入力</li>\n</ol>\n<p>で、30秒ほどでカウンセリング申し込みが完了します。</p>\n<p><img decoding=\"async\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1.png\" alt=\"\" width=\"1920\" height=\"1418\" class=\"alignnone size-full wp-image-2457\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1.png 1920w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1-300x222.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1-1024x756.png 1024w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1-768x567.png 768w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1-1536x1134.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" /></p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h2>Aidemyのメリット・デメリット</h2>\n<ul></ul>\n<p>Aidemyがほかのプログラミングスクールと比べてお勧めできるポイントとしては、以下の通りです。</p>\n<ol>\n<li>AIをがっつりと学ぶなら、Aidemyのコンテンツの質が高いのでよい</li>\n<li>完全オンラインなので、忙しくても受講できる</li>\n</ol>\n<p>一方で、Web系のエンジニアになりたいなら、また別のスクールを受講するのがおすすめです。</p>\n<p><a href=\"https://freelance.indieverse.co.jp/media/programming-school/recommended-programming-school/\">≫おすすめのプログラミングスクールを紹介します！【エンジニアになれたプログラミングスクール卒業生のインタビューあり】</a></p>\n<h2>Aidemyの料金は？</h2>\n<p>Aidemyの料金は、以下のようになっております。</p>\n<ul>\n<li>4週間プラン：199,980円</li>\n<li>8週間プラン：299,980円</li>\n<li>12週間プラン：389,980円</li>\n<li>16週間プラン：479,980円</li>\n</ul>\n<p>個人的には、エンジニアの場合は4週間プラン、非エンジニアの場合は8週間プラン以降がおすすめです。<br />\n現役のデータサイエンティストを雇っているので、相応の価格ですが、実際には最新の論文に対しての質問にも答えられるようになっています。</p>\n<h2>Aidemyの全額返金保証</h2>\n<p>Aidemyは、受講開始してから最初の14日以内であれば、全額返金保証ができます。</p>\n<blockquote><p>(2) Aidemy Premium Planを個人で購入される方<br />\n1. お客様都合のキャンセル<br />\nすべてのAidemy Premium Planコースがキャンセルの対象です。<br />\n受講開始日を含む14日以内に、Aidemy Premium Planで利用するチャットツールまたは support@aidemy.net 宛に返金を申し出てください。<br />\nクレジットカードで決済された場合は利用時のクレジットカードに全額返金します。銀行振込で決済された場合は指定の銀行口座に全額返金します。</p>\n<p>2. キャンセルを承らないケース<br />\nキャンセル申込の期限は受講開始日（当日を含む。）から14日間です。キャンセル期限を過ぎてからの返金はお受けいたしかねます。<br />\nまた、Aidemy Premium Planの申込とキャンセルを繰り返す行為が認められた場合には、返金をお断りすることがあります。</p></blockquote>\n<p><a href=\"https://aidemy.net/terms-of-service\">≫利用規約</a></p>\n<p>そのため、もし受講してみたら思ったものと全然違った！となれば、すぐにでもキャンセルすることができます。実際私が働いていた時も、急な出張などでどうしてもキャンセルしなければならないような場合は、全額返金保証を利用してキャンセルされている方もいらっしゃいました。</p>\n<p>アイデミーは基本的に柔軟に対応してくれると思いますので、安心です。詳しいことは無料カウンセリングでも聞くことができます。</p>\n<h2>Aidemyの講師は？</h2>\n<ul></ul>\n<p>Aidemyの講師は、現役データサイエンティストや、最先端の機械学習（音声認識、画像処理等）を研究している有名国立大学の院生などがいます。<br />\nそのため、</p>\n<ul>\n<li>最新の論文について教えてほしい</li>\n<li>データサイエンティストの面接には何をすればいいのか</li>\n</ul>\n<p>等について、質問することも可能です。</p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-965\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/チューター.png\" alt=\"\" width=\"808\" height=\"522\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/チューター.png 808w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/チューター-300x194.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/チューター-768x496.png 768w\" sizes=\"(max-width: 808px) 100vw, 808px\" /></p>\n<p>また、一人ひとりにパーソナルメンターが付き、一人ひとりの学習の進捗を確認しつつ、フィードバックしてくれます。</p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h2>Aidemyこんな人にオススメ</h2>\n<p>Aidemyは、</p>\n<ul>\n<li>完全にネット上で学習を完結したい、忙しい社会人</li>\n<li>実際に実務で使われる人工知能のスキルを身に着けたい方</li>\n</ul>\n<p>に、非常におすすめです。</p>\n<p>確かに料金はかなりお高めですが、実際にはかなり実務で使えるような技術がつきます。日本のリーディングカンパニーが研修で利用するAidemyの学習コースをもとに、</p>\n<ul>\n<li>人工知能が理解できるビジネスパーソンになりたい！</li>\n<li>人工知能が実装できるエンジニアになりたい！</li>\n</ul>\n<p>という方には、間違いなくおすすめできるサービスです。</p>\n<p>とはいえ、このページだけではわからないこともあると思うので、ぜひ<strong>無料カウンセリング</strong>でご不明点はご相談してみるとよいと思います！（Aidemyは「儲ける気があるのか？」と言われるほど、カウンセリングではしつこく勧誘しませんし、ニーズがあっていない場合は他社を紹介するような会社なので、ぜひご気軽にご相談ください笑）</p>\n<h3>Aidemy(アイデミー)</h3>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<p>&nbsp;</p>\n<h2>LINE@登録者限定で無料チュートリアルプレゼント中！</h2>\n<p>Indieverse Freelanceは、プログラミングの基礎から応用までを網羅したプログラミング教材です。<br />\n初心者や非エンジニアの方でも、Twitter分析のWEBアプリ、LINE Bot開発、業務の自動化などをゼロから学習することができます。</p>\n<ul>\n<li>スクレイピング案件受託コース ～クラウドソーシング案件をやってみよう</li>\n<li>LINE Bot開発コース | 自動文字起こしができる「文字起こしくん」を作ろう</li>\n<li>Twitter分析Webアプリ「Top Tweets」を作ろう！</li>\n<li>【業務自動化】はじめてのプログラミングで、毎日の業務を効率化してみよう！</li>\n</ul>\n<p>上記のような多くのコースの中から自分にぴったりのコースをお選びいただけます。特に今回のBeautifulSoupの内容を実践したい方は、スクレイピング案件受託コースコースがおすすめです。</p>\n<p>LINE＠に登録した方限定でチュートリアルが見れるようになっているので、ぜひ一度覗いてみてください！</p>\n\n\t\t<div class='service-cta-modern'>\n\t\t\t<div class='service-cta-card'>\n\t\t\t\t<div class='service-cta-header'>\n\t\t\t\t\t<div class='service-cta-badge'>\n\t\t\t\t\t\t<span class='badge-text'>おすすめサービス</span>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='service-cta-title'>\n\t\t\t\t\t\t<a href='https://freelance.indieverse.co.jp/media/dainote-lp-click' rel='nofollow noopener' target='_blank'>Indieverse Freelance オリジナルアプリを作ろう</a>\n\t\t\t\t\t</div>\n\t\t\t\t<div class='service-cta-description'>\n\t\t\t\t\t<span class='description-text'>\n\t\t\t\t\t\t<span class='check-icon'>✓</span>PythonやGoogle Apps Scriptでオリジナルアプリを作りましょう\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='service-cta-visual'>\n\t\t\t\t\t<div class='service-cta-image-wrapper'>\n\t\t\t\t\t\t<a href='https://freelance.indieverse.co.jp/media/dainote-lp-click' rel='nofollow noopener' target='_blank'>\n\t\t\t\t\t\t\t<img src='https://code.dividable.net/wp-content/uploads/2020/05/DAINOTE_LINE@LP_FV-1024x576.png' alt='Indieverse Freelance オリジナルアプリを作ろう' class='service-cta-image'>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class='service-cta-actions service-cta-actions--single'>\n\t\t\t\t\t<a class='service-cta-button service-cta-button--primary service-cta-button--large' rel='nofollow noopener' href='https://freelance.indieverse.co.jp/media/dainote-lp-click' target='_blank'>\n\t\t\t\t\t\t<span class='button-text'>学習を始める</span>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t\n<h2>関連記事：もっと学習したい方向け</h2>\n<p><a href=\"https://freelance.indieverse.co.jp/media/programming-school/python-school/\">【2020年最新】Pythonや機械学習を学べるプログラミングスクール厳選3つ</a><br />\n<a href=\"https://freelance.indieverse.co.jp/media/programming-school/programming-school-freelance-engineer/\">【2020年】プログラミングスクールで受講者がおすすめした厳選6社を一挙解説【体験談まとめ】</a></p>\n</div>\n</div>\n","protected":false},"excerpt":{"rendered":"<p>PythonのBeautifulSoup入門。インストールからHTML解析、タグ抽出、スクレイピングの基本、prettifyやfind_all、Requests連携やCSV出力までをサンプルで解説します。</p>\n","protected":false},"author":1,"featured_media":3174,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[191],"tags":[],"class_list":["post-3161","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"PythonのBeautifulSoup入門。インストールからHTML解析、タグ抽出、スクレイピングの基本、prettifyやfind_all、Requests連携やCSV出力までをサンプルで解説します。\" />\n\t<meta name=\"robots\" content=\"max-image-preview:large\" />\n\t<meta name=\"author\" content=\"DAI\"/>\n\t<link rel=\"canonical\" href=\"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup\" />\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" />\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" />\n\t\t<meta property=\"og:site_name\" content=\"インディバースフリーランスメディア - Indieverse Freelanceの公式メディアです\" />\n\t\t<meta property=\"og:type\" content=\"article\" />\n\t\t<meta property=\"og:title\" content=\"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~ - インディバースフリーランスメディア\" />\n\t\t<meta property=\"og:description\" content=\"PythonのBeautifulSoup入門。インストールからHTML解析、タグ抽出、スクレイピングの基本、prettifyやfind_all、Requests連携やCSV出力までをサンプルで解説します。\" />\n\t\t<meta property=\"og:url\" content=\"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup\" />\n\t\t<meta property=\"article:published_time\" content=\"2021-01-26T12:30:50+00:00\" />\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-07T01:58:00+00:00\" />\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" />\n\t\t<meta name=\"twitter:title\" content=\"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~ - インディバースフリーランスメディア\" />\n\t\t<meta name=\"twitter:description\" content=\"PythonのBeautifulSoup入門。インストールからHTML解析、タグ抽出、スクレイピングの基本、prettifyやfind_all、Requests連携やCSV出力までをサンプルで解説します。\" />\n\t\t<script type=\"application/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\/\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup#blogposting\",\"name\":\"\\u3010\\u4fdd\\u5b58\\u7248\\u3011Python BeautifulSoup\\u306e\\u57fa\\u790e\\u3068\\u4f7f\\u3044\\u65b9~\\u5b9f\\u969b\\u306b\\u30c7\\u30fc\\u30bf\\u3092\\u6574\\u5f62\\u3057\\u3064\\u3064\\u30c0\\u30a6\\u30f3\\u30ed\\u30fc\\u30c9\\u3059\\u308b~ - \\u30a4\\u30f3\\u30c7\\u30a3\\u30d0\\u30fc\\u30b9\\u30d5\\u30ea\\u30fc\\u30e9\\u30f3\\u30b9\\u30e1\\u30c7\\u30a3\\u30a2\",\"headline\":\"\\u3010\\u4fdd\\u5b58\\u7248\\u3011Python BeautifulSoup\\u306e\\u57fa\\u790e\\u3068\\u4f7f\\u3044\\u65b9~\\u5b9f\\u969b\\u306b\\u30c7\\u30fc\\u30bf\\u3092\\u6574\\u5f62\\u3057\\u3064\\u3064\\u30c0\\u30a6\\u30f3\\u30ed\\u30fc\\u30c9\\u3059\\u308b~\",\"author\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/author\\/wpmaster#author\"},\"publisher\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\/\\/freelance.dividable.net\\/wp-content\\/uploads\\/2019\\/11\\/20\\u4ee3\\u306e\\u30ad\\u30e3\\u30ea\\u30a2\\u5f62\\u6210.001-1.jpeg\",\"width\":1920,\"height\":1080},\"datePublished\":\"2021-01-26T21:30:50+09:00\",\"dateModified\":\"2026-10-07T10:58:00+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup#webpage\"},\"isPartOf\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup#webpage\"},\"articleSection\":\"Python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\/\\/freelance.dividable.net\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming#listItem\",\"position\":2,\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\",\"item\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming\\/python#listItem\",\"name\":\"Python\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming\\/python#listItem\",\"position\":3,\"name\":\"Python\",\"item\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming\\/python\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup#listItem\",\"name\":\"\\u3010\\u4fdd\\u5b58\\u7248\\u3011Python BeautifulSoup\\u306e\\u57fa\\u790e\\u3068\\u4f7f\\u3044\\u65b9~\\u5b9f\\u969b\\u306b\\u30c7\\u30fc\\u30bf\\u3092\\u6574\\u5f62\\u3057\\u3064\\u3064\\u30c0\\u30a6\\u30f3\\u30ed\\u30fc\\u30c9\\u3059\\u308b~\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup#listItem\",\"position\":4,\"name\":\"\\u3010\\u4fdd\\u5b58\\u7248\\u3011Python BeautifulSoup\\u306e\\u57fa\\u790e\\u3068\\u4f7f\\u3044\\u65b9~\\u5b9f\\u969b\\u306b\\u30c7\\u30fc\\u30bf\\u3092\\u6574\\u5f62\\u3057\\u3064\\u3064\\u30c0\\u30a6\\u30f3\\u30ed\\u30fc\\u30c9\\u3059\\u308b~\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming\\/python#listItem\",\"name\":\"Python\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/#organization\",\"name\":\"Indieverse Freelance\",\"description\":\"Indieverse Freelance\\u306e\\u516c\\u5f0f\\u30e1\\u30c7\\u30a3\\u30a2\\u3067\\u3059\",\"url\":\"https:\\/\\/freelance.dividable.net\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/author\\/wpmaster#author\",\"url\":\"https:\\/\\/freelance.dividable.net\\/author\\/wpmaster\",\"name\":\"DAI\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup#webpage\",\"url\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup\",\"name\":\"\\u3010\\u4fdd\\u5b58\\u7248\\u3011Python BeautifulSoup\\u306e\\u57fa\\u790e\\u3068\\u4f7f\\u3044\\u65b9~\\u5b9f\\u969b\\u306b\\u30c7\\u30fc\\u30bf\\u3092\\u6574\\u5f62\\u3057\\u3064\\u3064\\u30c0\\u30a6\\u30f3\\u30ed\\u30fc\\u30c9\\u3059\\u308b~ - \\u30a4\\u30f3\\u30c7\\u30a3\\u30d0\\u30fc\\u30b9\\u30d5\\u30ea\\u30fc\\u30e9\\u30f3\\u30b9\\u30e1\\u30c7\\u30a3\\u30a2\",\"description\":\"Python\\u306eBeautifulSoup\\u5165\\u9580\\u3002\\u30a4\\u30f3\\u30b9\\u30c8\\u30fc\\u30eb\\u304b\\u3089HTML\\u89e3\\u6790\\u3001\\u30bf\\u30b0\\u62bd\\u51fa\\u3001\\u30b9\\u30af\\u30ec\\u30a4\\u30d4\\u30f3\\u30b0\\u306e\\u57fa\\u672c\\u3001prettify\\u3084find_all\\u3001Requests\\u9023\\u643a\\u3084CSV\\u51fa\\u529b\\u307e\\u3067\\u3092\\u30b5\\u30f3\\u30d7\\u30eb\\u3067\\u89e3\\u8aac\\u3057\\u307e\\u3059\\u3002\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup#breadcrumblist\"},\"author\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/author\\/wpmaster#author\"},\"creator\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/author\\/wpmaster#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\/\\/freelance.dividable.net\\/wp-content\\/uploads\\/2019\\/11\\/20\\u4ee3\\u306e\\u30ad\\u30e3\\u30ea\\u30a2\\u5f62\\u6210.001-1.jpeg\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup\\/#mainImage\",\"width\":1920,\"height\":1080},\"primaryImageOfPage\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-beautifulsoup#mainImage\"},\"datePublished\":\"2021-01-26T21:30:50+09:00\",\"dateModified\":\"2026-10-07T10:58:00+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/#website\",\"url\":\"https:\\/\\/freelance.dividable.net\\/\",\"name\":\"\\u30a4\\u30f3\\u30c7\\u30a3\\u30d0\\u30fc\\u30b9\\u30d5\\u30ea\\u30fc\\u30e9\\u30f3\\u30b9\\u30e1\\u30c7\\u30a3\\u30a2\",\"description\":\"Indieverse Freelance\\u306e\\u516c\\u5f0f\\u30e1\\u30c7\\u30a3\\u30a2\\u3067\\u3059\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/#organization\"}}]}\n\t\t</script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~ - インディバースフリーランスメディア","description":"PythonのBeautifulSoup入門。インストールからHTML解析、タグ抽出、スクレイピングの基本、prettifyやfind_all、Requests連携やCSV出力までをサンプルで解説します。","canonical_url":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https://schema.org","@graph":[{"@type":"BlogPosting","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup#blogposting","name":"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~ - インディバースフリーランスメディア","headline":"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~","author":{"@id":"https://freelance.indieverse.co.jp/media/author/wpmaster#author"},"publisher":{"@id":"https://freelance.indieverse.co.jp/media/#organization"},"image":{"@type":"ImageObject","url":"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/11/20代のキャリア形成.001-1.jpeg","width":1920,"height":1080},"datePublished":"2021-01-26T21:30:50+09:00","dateModified":"2026-10-07T10:58:00+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup#webpage"},"isPartOf":{"@id":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup#webpage"},"articleSection":"Python"},{"@type":"BreadcrumbList","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/#listItem","position":1,"name":"ホーム","item":"https://freelance.indieverse.co.jp/media/","nextItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming#listItem","name":"プログラミング"}},{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming#listItem","position":2,"name":"プログラミング","item":"https://freelance.indieverse.co.jp/media/category/programming","nextItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming/python#listItem","name":"Python"},"previousItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/#listItem","name":"ホーム"}},{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming/python#listItem","position":3,"name":"Python","item":"https://freelance.indieverse.co.jp/media/category/programming/python","nextItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup#listItem","name":"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~"},"previousItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming#listItem","name":"プログラミング"}},{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup#listItem","position":4,"name":"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~","previousItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming/python#listItem","name":"Python"}}]},{"@type":"Organization","@id":"https://freelance.indieverse.co.jp/media/#organization","name":"Indieverse Freelance","description":"Indieverse Freelanceの公式メディアです","url":"https://freelance.indieverse.co.jp/media/"},{"@type":"Person","@id":"https://freelance.indieverse.co.jp/media/author/wpmaster#author","url":"https://freelance.indieverse.co.jp/media/author/wpmaster","name":"DAI"},{"@type":"WebPage","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup#webpage","url":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup","name":"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~ - インディバースフリーランスメディア","description":"PythonのBeautifulSoup入門。インストールからHTML解析、タグ抽出、スクレイピングの基本、prettifyやfind_all、Requests連携やCSV出力までをサンプルで解説します。","inLanguage":"ja","isPartOf":{"@id":"https://freelance.indieverse.co.jp/media/#website"},"breadcrumb":{"@id":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup#breadcrumblist"},"author":{"@id":"https://freelance.indieverse.co.jp/media/author/wpmaster#author"},"creator":{"@id":"https://freelance.indieverse.co.jp/media/author/wpmaster#author"},"image":{"@type":"ImageObject","url":"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/11/20代のキャリア形成.001-1.jpeg","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup/#mainImage","width":1920,"height":1080},"primaryImageOfPage":{"@id":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup#mainImage"},"datePublished":"2021-01-26T21:30:50+09:00","dateModified":"2026-10-07T10:58:00+09:00"},{"@type":"WebSite","@id":"https://freelance.indieverse.co.jp/media/#website","url":"https://freelance.indieverse.co.jp/media/","name":"インディバースフリーランスメディア","description":"Indieverse Freelanceの公式メディアです","inLanguage":"ja","publisher":{"@id":"https://freelance.indieverse.co.jp/media/#organization"}}]},"og:locale":"ja_JP","og:site_name":"インディバースフリーランスメディア - Indieverse Freelanceの公式メディアです","og:type":"article","og:title":"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~ - インディバースフリーランスメディア","og:description":"PythonのBeautifulSoup入門。インストールからHTML解析、タグ抽出、スクレイピングの基本、prettifyやfind_all、Requests連携やCSV出力までをサンプルで解説します。","og:url":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup","article:published_time":"2021-01-26T12:30:50+00:00","article:modified_time":"2026-10-07T01:58:00+00:00","twitter:card":"summary_large_image","twitter:title":"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~ - インディバースフリーランスメディア","twitter:description":"PythonのBeautifulSoup入門。インストールからHTML解析、タグ抽出、スクレイピングの基本、prettifyやfind_all、Requests連携やCSV出力までをサンプルで解説します。"},"aioseo_meta_data":{"post_id":"3161","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"summary_large_image","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2022-06-16 00:47:40","updated":"2025-09-09 01:15:57","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https://freelance.indieverse.co.jp/media/\" title=\"ホーム\">ホーム</a>\n\t\t</span><span class=\"aioseo-breadcrumb-separator\">»</span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https://freelance.indieverse.co.jp/media/category/programming\" title=\"プログラミング\">プログラミング</a>\n\t\t</span><span class=\"aioseo-breadcrumb-separator\">»</span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https://freelance.indieverse.co.jp/media/category/programming/python\" title=\"Python\">Python</a>\n\t\t</span><span class=\"aioseo-breadcrumb-separator\">»</span><span class=\"aioseo-breadcrumb\">\n\t\t\t【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~\n\t\t</span></div>","aioseo_breadcrumb_json":[{"label":"ホーム","link":"https://freelance.indieverse.co.jp/media/"},{"label":"プログラミング","link":"https://freelance.indieverse.co.jp/media/category/programming"},{"label":"Python","link":"https://freelance.indieverse.co.jp/media/category/programming/python"},{"label":"【保存版】Python BeautifulSoupの基礎と使い方~実際にデータを整形しつつダウンロードする~","link":"https://freelance.indieverse.co.jp/media/programming/python/python-beautifulsoup"}],"meta_description":"PythonのBeautifulSoup入門。インストールからHTML解析、タグ抽出、スクレイピングの基本、prettifyやfind_all、Requests連携やCSV出力までをサンプルで解説します。","_links":{"self":[{"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/posts/3161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/posts"}],"about":[{"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/comments?post=3161"}],"version-history":[{"count":3,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/posts/3161/revisions"}],"predecessor-version":[{"id":98578,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/posts/3161/revisions/98578"}],"wp:featuredmedia":[{"embeddable":true,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/media/3174"}],"wp:attachment":[{"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/media?parent=3161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/categories?post=3161"},{"taxonomy":"post_tag","embeddable":true,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/tags?post=3161"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}