Package: nhk-easy
nhk-easyAn API forNHK News Web Easy.It includes a command-line application that supports download of audio (as.m3u8playlists or.mp3) and text (with or without furigana, in plain text or HTML) of today's top news articles displayed on the homepage ofNHK News Web Easy.Installationpip install nhk-easySynopsisusage: nhk-easy [-h] [-M] [-d DIRECTORY] [-F] [-H]

optional arguments:
  -h, --help            show this help message and exit
  -M, --mp3             Download mp3 audio instead of m3u8 playlist (ffmpeg required)
  -d DIRECTORY, --directory DIRECTORY
                        output directory
  -F, --furigana        enable furigana
  -H, --html            HTML output (default is txt)UsageTo start with, trynhk-easyalone (with default options):nhk-easyThis downloads:plain text without furigana in.txtfiles, andthe.m3u8playlist file of the audioof all top articles currectly shown onhttps://www3.nhk.or.jp/news/easy/m3u8playlists can be streamed by VLC, for example, to play audio.The flag--furigana(-F) enables furigana. If you want HTML output instead of plain text, use the flag--html(-H). In plain text, furigana guides are shown in parentheses; in HTML output, they are contained withinrubytags.If you haveffmpeginstalled, you may use the--mp3(-M) flag to download.mp3audio files instead of.m3u8playlists.You can use the--directory(-d) flag to specify the output directory (defaults to the currect directory).Example output:$ mkdir outdir && nhk-easy -MFH -d outdir && ls outdir
2020-07-08-避難所でコロナウイルスがうつらないように気をつけること.mp3
2020-07-08-避難所でコロナウイルスがうつらないように気をつけること.html
2020-07-09-コロナウイルスのアプリ　うつったことを知らせた人は３人.mp3
2020-07-09-コロナウイルスのアプリ　うつったことを知らせた人は３人.html
......Copyright NoticeYou should abide byNHK's copyright notice:NHKホームページはすべてNHKの著作物です。次の点にご注意いただいた上でご利用下さい。NHKのホームページの画面あるいは内容を自分のホームページに取り込んではいけません。著作権法で許された範囲を超えて複製してはいけません。著作権法で許された範囲内で複製する場合でも、その複製物を目的外に利用してはいけません。著作権法で許された範囲内で複製する場合でも、改変するなど手を加えてはいけません。電子透かしについてNHKのホームページではNHKおよびNHKに素材を提供していただいている他の著作権保有者の権利を守るために、電子透かしを用いています。TroubleshootingFail to Download mp3ffmpegfreezes due to unstable internet connectionctrl+Cand/orctrl+Dto exit.Delete any incomplete file(s).Make sure you have a good connection, then re-runnhk-easywith the same argument(s). Files already downloaded will be skipped.ffmpegerrordyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylibSeehttps://github.com/platformio/platform-lattice_ice40/issues/7. This is the most widely accepted solution:cd /usr/local/opt/libffi/lib
ln -s libffi.7.dylib libffi.6.dylibLicenceThe MIT License (MIT)

Copyright (c) 2020 石天熠

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.