Package: nicotools
FeaturesThis is a command-line tool and python utility module to download videos, comments and thumbnail images on niconico (nicovideo.jp).
And also with this you can handle your Mylists: add, delete, move and copy each items and create or remove new lists.Thumbnails: larger and smaller ones.Comments: in XML and JSON format.Videos: in both types, i.e. of “smile” server (older one) and of “dmc.nico” server (newer one).Concurrent download (4x faster by default).Installationpip install nicotoolsRequirementsPython >= 3.6UsageBy running without any arguments, we will show you a help.Usage as a CLI toolFor the first time you will asked your mail address and password.
From the next time on HTTP Cookie will be saved in to your HOME directory, so mail and pass are not needed.
Or you may specify your credentials every time you run this, as this:nicotools download-vsm9--mail<mail address>--pass<password>DownloadingTo download thumbnails of video ids of sm1, … sm5:nicotools downlaod--thumbnail--dest"./Downloads"sm1 sm2 sm3 sm4 sm5To downalod thumbnails, comments and videos of those:nicotools download--comment--video--thumbnail--dest"./Downloads"sm1 sm2 sm3 sm4 sm5Shorthand commands and how to specify video ids from text file (prepend plus sign):nicotools download-cvt-d"./Downloads"+ids.txtXML comment (”–dest” is for destination directory):nicotools download-cvt--xml-dest"./Downloads"sm1to list up whole contents in all LISTS (TAB separated format):nicotools mylist *--show--everything--outD:/Downloads/all.txtDealing with Myliststo apped videos on MYLIST:nicotools mylist MYLIST--addsm1 sm2 sm3another way to append: from a text file, in which video id in each lines are written:nicotools mylist MYLIST--add+C:/Users/Me/Desktop/ids.txtspecify the MYLIST by its ID (this is shown in the LIST’s URL):nicotools mylist 12345678--id--addsm1 sm2 sm3to dleete items from MYLIST:nicotools mylist MYLIST--deletesm1 sm2 sm3to clear the MYLIST:nicotools mylist MYLIST--delete*to clear the MYLIST without confirmation:nicotools mylist MYLIST--delete*--yesto move some items in MYLIST to –to:nicotools mylist MYLIST--tofoofoo--movesm1 sm2 sm3to copy entire items in MYLIST to –to:nicotools mylist MYLIST--tobarbar--move*to copy some items in MYLIST to –to:nicotools mylist MYLIST--tobaaboo--copysm1 sm2 sm3to copy entire items in MYLIST to –to:nicotools mylist MYLIST--tofoobar--copy*to list up all LIST’s names:nicotools mylist *--showto list up whole contents in all LISTS (TAB separated format):nicotools mylist *--show--everything--outD:/Downloads/all.txtto list up whole contents in all LISTS (TABLE format):nicotools mylist *--show--show--everything--outD:/Downloads/all.txtto list up items in a single LIST:nicotools mylist MYLIST--exportto list up video ids of whole contents in all LISTS:nicotools mylist *--export--everything--outD:/Downloads/all.txtto list up the metadata of LISTS:nicotools mylist *--export--outD:/Downloads/all.txtto create new LIST with name of LISTNAME:nicotools mylist LISTNAME--createto remove the LIST:nicotools mylist MYLIST--purgeto remove the LIST without cconfirmation:nicotools mylist MYLIST--purge--yesUsage as a modulefrom nicotools.download import VideoDmc, VideoSmile, Comment, Thumbnail

mail = "<your mail address>"
password = "<your password>"
xml = True # Set to True if you want in XML format, default is JSON

# a list of video ids
video_ids = ["sm1", "sm2", "sm3"]
# directory path to save files in
DIR_PATH = "./downloads/"

Thumbnail().start(video_ids, DIR_PATH)

Comment(mail, password).start(video_ids, DIR_PATH, xml)

VideoSmile(mail, password).start(video_ids, DIR_PATH)

VideoDmc(mail, password).start(video_ids, DIR_PATH)