beautifulsoup

インストール方法

# pacman -S python-beautifulsoup4

サンプル

pick_up.py

実行コマンド

./pick_up.py list_inp1763_1.html list_1763.json

エラーになる例

$ ./pick_up.py list_inp112_1.html list_112.json
*** 開始 ***
Traceback (most recent call last):
  File "./pick_up.py", line 21, in 
    soup = BeautifulSoup(open (file_in))
  File "/usr/lib/python3.4/site-packages/bs4/__init__.py", line 161, in __init__
    markup = markup.read()
  File "/usr/lib/python3.4/codecs.py", line 319, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 21: invalid start byte

Return

Jun/26/2015 AM 08:15