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

download failed: 403 Forbidden #70

Open
fluca1978 opened this issue Jun 26, 2024 · 0 comments
Open

download failed: 403 Forbidden #70

fluca1978 opened this issue Jun 26, 2024 · 0 comments

Comments

@fluca1978
Copy link

I'm running the current HEAD, with the following snippet of code:

use v5.38;
use experimental 'try';
use WWW::YouTube::Download;

my $client = WWW::YouTube::Download->new;

for my $video_id ( qw/91uaaSyrKm0 Y1I1KcKvz9Q/ ) {
    say "Video id: $video_id";
    try {
	$client->download( $video_id );
    } catch( $ex ) {
	say $ex;
    }
}

Note that the second video id is the one used in the test suite.

When I run the above, I got:

% perl dl.pl
Video id: 91uaaSyrKm0
!! 91uaaSyrKm0 download failed: 403 Forbidden at dl.pl line 12.

Video id: Y1I1KcKvz9Q
!! Y1I1KcKvz9Q download failed: 403 Forbidden at dl.pl line 12.

I suspect this has something to do with YouTube itself and not the library, is there the need for some sort of authentication?

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

1 participant