Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #1266

Open
Nodalailama opened this issue Dec 10, 2023 · 1 comment
Open

Question #1266

Nodalailama opened this issue Dec 10, 2023 · 1 comment

Comments

@Nodalailama
Copy link

Nodalailama commented Dec 10, 2023

Hi,

I just want to get the downloadable url of a video, how can I simply do this ?
Sorry, I am not super confortable with js.

Thanks in advance, even if it may be a newbie question.

Best regards,

@TheMineWay
Copy link

Hi! I guess you are asking for the code you have to write to download a video.

I am using this code:

const ytdl = require('ytdl-core');

const vid = await ytdl(
  'https://www.youtube.com/watch?v=q0GCdwpdXzQ&ab_channel=LASS-Studios',
  { filter: (format) => format.container === 'mp4' },
);
vid.pipe(fs.createWriteStream('/downloads/test.mp4'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants