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

This site can’t be reached #158

Open
kihanb opened this issue May 3, 2022 · 3 comments
Open

This site can’t be reached #158

kihanb opened this issue May 3, 2022 · 3 comments

Comments

@kihanb
Copy link

kihanb commented May 3, 2022

Hi,
The links are broken! when I tried play the links with script this error is displayed:
This site can’t be reached

@DarrylMcoder
Copy link

Which links are broken. It's working great on my website. Can you please give everyone more details?

@kihanb
Copy link
Author

kihanb commented May 7, 2022

I think my host ip blocked by youtube!
I was wondering how i can set proxy for it?

@DarrylMcoder
Copy link

DarrylMcoder commented May 28, 2022

The library has a setProxy method on the Browser class. I use it to set a proxy after catching the TooManyRequestsExeption.
Use it like this:
$youtube = new \YouTube\YouTubeDownloader();
$youtube->getBrowser()->setProxy($proxy);

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