This project is used for download all videos of a douyin channel. Using selenium and chrome webdriver.
-
First you need to download Chrome Webdriver( choose your version that compatible with your browser).
Download chrome webdriver here. -
Open Main class, config location of webdriver in your computer:
System.setProperty("webdriver.chrome.driver", The location of driver here); -
Set some attributes below:
-
CHANNEL_URL( url of channel to download)
-
savedLoc( the location saved files)
-
THREAD_NUM( the number of thread run to download videos)
-
MAX_DOWNLOAD_VIDEOS( maximum videos to be downloaded, you can fix it equals 999999999 if you need to get all)
-
Run the Main class, and solved captcha, close any popup in the opened browsers.