Node-ytdl-core: URL takes to Error 403

Created on 8 Aug 2019  路  6Comments  路  Source: fent/node-ytdl-core

Hi there! I'm new to this, I'm trying to retrieve a video URL with no audio, and this is the code I've tried:

ytdl.getInfo("https://www.youtube.com/watch?v=1N3vUlC5354")
    .then(res => response = res)
    .then(function () {
        console.log(response.formats[3].url); //Video
        console.log(response.formats[20].url); //Audio
    })

They output a link each, but visiting that link returns a 403 Error in the normal browser.
I've looked into the problem, and it's supposed to be 'IP locked', but I'm using the same IP address, as I'm running Node from my local machine + the browser on my local machine.
Why is this / am I doing something wrong?
Thanks

question

Most helpful comment

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.71. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

All 6 comments

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.71. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

does it work if you download these using ytdl?

My main issue is I鈥檓 attempting to make a YouTube downloading proxy, where it gets the link and uploads that end file to Google Drive. Does that mean it wouldn鈥檛 work?

ytdl returns a stream, you can download/upload that anywhere

Had the same issue, just update library to latest version.

Urls can be restricted on more than just IP, see https://github.com/ytdl-org/youtube-dl/blob/master/README.md#i-extracted-a-video-url-with--g-but-it-does-not-play-on-another-machine--in-my-web-browser

So could be because different cookies / UA header

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GamerXD4 picture GamerXD4  路  5Comments

FireController1847 picture FireController1847  路  5Comments

barbhackk picture barbhackk  路  3Comments

arcovoltaico picture arcovoltaico  路  6Comments

gooca picture gooca  路  7Comments