The coolest project I wrote that use selenium, youtube-dl to fetch videos list from niconico account favourite list and download these videos.
The project is no longer maintained.
The project is not working any more in 2020 as NicoNico completely remade their user pages, which breaks Selenium code from fetching the favourite list contents.
A solution is possible, but I won't do it anymore
If you still want to batch download videos from niconico account favourite list, consider using any programs from the list of Awesome NicoNicoDouga Video Downloaders.
This list will be maintained in long term.
Special thanks for the 3rd party programable video downloader------Youtube-dl, without this excutable file, I can't fix the issue that happened after the niconico website updates. Youtube-dl: https://github.com/rg3/youtube-dl/
Thanks for Selenium, without this amazing library, I can't come up with this project. Selenium: https://www.seleniumhq.org/
And also thanks for the ChromeDriver that provided by Google ChromeDriver: https://sites.google.com/a/chromium.org/chromedriver/
Currently this project only supports Windows and only support GoogleChrome, since I only use them
- Windows OS
- Java 11
- Chrome browser
- download the artifact from release pages, unpack it
- create your own profile: go to the
data/
folder, create an copy ofexample_user.properties
, and fill in that property file.- modify the
data.downloadedList
to something else to avoid using the prefilleddownload.txt
indata/
- modify the
- modify
system_config.property
- modify
user.config
to use your own profile - modify
idm
property valye if you plan to use IDM to download PVs (which means you setdownloadMethod
to "idm")
- modify
- (optional, recommended) update youtube-dl.exe in
lib/
with command 'youtube-dl.exe --update' - run: open terminal in the project root folder, type
java -jar .\<the jar filename>
- recent Chrome 80 webdriver would flash timeout warning and occasionally throw
ConnectException
, if that happens, simply clean out allRuntime Broker
in Windows Task Manager, clean up chromedriver.exe, and restart the program.