Humanity

Edit the world by your favorite way

dlnico.pl作った

(追記 2015/12/05 1:59) 更に修正しました。
tyru.hatenablog.com



本文

作ってからふとdlnicoで検索したらdlnico.pyってのがあって、
自分がほしい機能が揃ってたので感動したけど動かなくなってたので作った。

tyru/dlnico.pl · GitHub

追記

(2011/06/29 19:08): id:rightgo09さんがブクマでWeb::Scraperが使われてないことを教えてくれたので修正しました。

README

以下READMEから引用

Usage:
        $ dlnico.pl {video or mylist} [{saved directory}]

        {video}
            video URI or number prefixed with "sm" or "nm".

        {mylist}
            mylist URI or number.

        {saved directory}
            the directory where downloaded video(s) are saved.
            default value is "." (current directory) .

Usage:
        $ dlnico.pl http://www.nicovideo.jp/mylist/22370493  # download all videos in mylist
        $ dlnico.pl 22370493                                 # same as above
        $ dlnico.pl http://www.nicovideo.jp/watch/sm14043624 # download the video
        $ dlnico.pl sm14043624                               # same as above

Options:
    -h  Show short help.

    --help
        Show long help.

    --email {email}
        Your email (as ID).

        if you have installed Config::Pit, and does not specify "--email",
        Config::Pit::pit_get() will invoke.

    --password {password}
        Your password.

        if you have installed Config::Pit, and does not specify "--email",
        Config::Pit::pit_get() will invoke.

    --progress
        Show progressbar while downloading.

    --overwrite
        Default behavior is that if there is already a file on the path of
        saving .flv file, skip it. but overwrite it if you specify this
        "--overwrite" option.

    -q, --quiet
        Run quietly.

    -v, --verbose
        Run verbosely.

TODO

以下 ./dlnico.pl --help からの引用

  • parallel download using Coro.
  • write about "--filename-format" syntax.
  • add available keys in "--filename-format" syntax.
  • test, test, test.