Skip to content

NicoNico Channel Plus nicochannel.jp comments downloader. / ニコニコチャンネル プラスからコメントを保存しま��

License

Notifications You must be signed in to change notification settings

aorinngoDo/nicochannel_comment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nicochannel_comment

nicochannel.jp comment(s) downloader.
ニコニコチャンネルプラスからコメントをダウンロードし,各種ソフトで扱えるxmlファイルに変換します。

Usage/利用方法:

対話形式での操作、チャンネルの一括コメント保存に対応しました!

  • オプションを指定せずとも利用しやすくなりました

image

image

image

image

usage: nicochannel_comment.py [-h] [-v] [-o OUTPUT] [--allow-broken-timestamp] [nico_url]

nicochannel.jp comment(s) downloader.

positional arguments:
  nico_url              Video URL or Channel URL.

options:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose log output
  -o OUTPUT, --output OUTPUT
                        Output directory / filename.
  --allow-broken-timestamp
                        Save comments that may have broken timestamps. It is recommended to add this option for videos       
                        longer than 8 hours.

video_url Example: https://nicochannel.jp/yojyo-bergamo/video/smvm4YYLRKyMreUq4sfjtawB

Example 1: [D:\Videos] にコメントファイルを保存
nicochannel_comment.py https://nicochannel.jp/yojyo-bergamo/video/smvm4YYLRKyMreUq4sfjtawB -o "D:\Videos\"
Example 2: カレントディレクトリ下にある[Videos]ディレクトリにファイル名を[comments.xml]としてコメントを全て保存
nicochannel_comment.py https://nicochannel.jp/yojyo-bergamo/video/smvm4YYLRKyMreUq4sfjtawB -o "./Videos/comments.xml" --allowbrokentimestamp


Tested on
Windows 11 64bit Python 3.11.4
Ubuntu 22.04.2 LTS amd64 Python 3.10.6

Bugs/不具合:

  • サーバから送られるコメントファイルの一部の時間データがおかしい
    確認できた限り,32000秒以降のコメントとして保存されているようなので無視するようにしている
    → 20220412から --allow-broken-timestamp オプションで保存できるようにした(32000秒=約9時間以上の動画だと,正常なタイムスタンプのコメントも無視されてしまうため)

FAQ

  • 動画ダウンロード機能は?
    追加予定はありません

  • コメントを扱えるソフトは?
    Windowsなら akpg toolsの各種ソフトなど
    Androidならひま動ぷれいやなど
    ※これらはこのツールと一切関係ありません

  • Releasesのビルドについて
    ~20220412_fix: Pyinstallerを利用
    20220505~: Nuitkaを利用

$ python -m nuitka --follow-imports --onefile nicochannel_comment.py
  • 動かない,何かおかしい,不具合や要望等がある
    Issues/Pull requestsを利用するか,直接連絡をお願いします

About

NicoNico Channel Plus nicochannel.jp comments downloader. / ニコニコチャンネル プラスからコメントを保存します

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages