Can't get ytdl-core to work. #1234
Unanswered
TheRooter1
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I've been trying to get the title of a YT video from an URL but so far with no success. Here is my code:
`const ytdl = require("ytdl-core");
ytdl.getBasicInfo('https://www.youtube.com/watch?v=gocwRvLhDf8', function(err, info) {
console.log(info.title);
});`
I've tried this with the newest version of ytdl-core (4.11.4) on both newest stable version of NodeJS (18.16.0) and an older version of NodeJS (v12.16.3). I get neither a response nor an error. Please help.
Beta Was this translation helpful? Give feedback.
All reactions