Explore Courses Blog Tutorials Interview Questions
0 votes
in Java by (13.1k points)
Can anyone help me how I can able to download YouTube videos using Java?

1 Answer

0 votes
by (26.7k points)

You can use the below code to download YouTube videos:

package com.mycompany.ytd;



import com.github.axet.vget.VGet;



 * @author Manindar


public class YTD {

    public static void main(String[] args) {

        try {

            String url = "watch?v=s10ARdfQU";

            String path = "D:\\Manindar\\YTD\\";

            VGet v = new VGet(new URL(url), new File(path));


        } catch (Exception e) {

            throw new RuntimeException(e);




Also, you need to add the dependency in POM.XML file:






I hope this will help.

Want to become a Java Expert? Join Java Course now!!

Related questions

0 votes
0 answers
0 votes
1 answer
0 votes
1 answer
0 votes
0 answers
asked Oct 26, 2020 in SEO by dev_sk2311 (44.4k points)

Browse Categories