## page was renamed from html2wiki/BeautifulSoup4
html2wiki/BeautifulSoup4について、ここに記述してください。
https://naruport.com/og/2019/11/14/python-html-parser/
https://qiita.com/Chanmoro/items/db51658b073acddea4ac
== install ==
こっちが楽だった。(結果論) (手元のUbuntu)
{{{
apt-get install python3-bs4
}}}
{{{
# apt-get install python3-bs4
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libllvm10
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
python3-html5lib python3-lxml python3-soupsieve python3-webencodings
Suggested packages:
python3-genshi python3-lxml-dbg python-lxml-doc
The following NEW packages will be installed:
python3-bs4 python3-html5lib python3-lxml python3-soupsieve
python3-webencodings
0 upgraded, 5 newly installed, 0 to remove and 5 not upgraded.
Need to get 1,590 kB of archives.
After this operation, 6,176 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 python3-soupsieve all 1.9.5+dfsg-1 [29.1 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 python3-bs4 all 4.8.2-1 [83.0 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 python3-webencodings all 0.5.1-1ubuntu1 [11.0 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu focal/main amd64 python3-html5lib all 1.0.1-2 [84.3 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-lxml amd64 4.5.0-1ubuntu0.3 [1,382 kB]
Fetched 1,590 kB in 0s (10.7 MB/s)
Selecting previously unselected package python3-soupsieve.
(Reading database ... 196303 files and directories currently installed.)
Preparing to unpack .../python3-soupsieve_1.9.5+dfsg-1_all.deb ...
Unpacking python3-soupsieve (1.9.5+dfsg-1) ...
Selecting previously unselected package python3-bs4.
Preparing to unpack .../python3-bs4_4.8.2-1_all.deb ...
Unpacking python3-bs4 (4.8.2-1) ...
Selecting previously unselected package python3-webencodings.
Preparing to unpack .../python3-webencodings_0.5.1-1ubuntu1_all.deb ...
Unpacking python3-webencodings (0.5.1-1ubuntu1) ...
Selecting previously unselected package python3-html5lib.
Preparing to unpack .../python3-html5lib_1.0.1-2_all.deb ...
Unpacking python3-html5lib (1.0.1-2) ...
Selecting previously unselected package python3-lxml:amd64.
Preparing to unpack .../python3-lxml_4.5.0-1ubuntu0.3_amd64.deb ...
Unpacking python3-lxml:amd64 (4.5.0-1ubuntu0.3) ...
Setting up python3-webencodings (0.5.1-1ubuntu1) ...
Setting up python3-html5lib (1.0.1-2) ...
Setting up python3-lxml:amd64 (4.5.0-1ubuntu0.3) ...
Setting up python3-soupsieve (1.9.5+dfsg-1) ...
Setting up python3-bs4 (4.8.2-1) ...
}}}