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

Timeout Option for Proxy Requests #324

Open
saeedesmaili opened this issue Aug 30, 2024 · 1 comment
Open

Timeout Option for Proxy Requests #324

saeedesmaili opened this issue Aug 30, 2024 · 1 comment

Comments

@saeedesmaili
Copy link

I'm using youtube-transcript-api some socks5 proxies, which work mostly fine, but sometimes one of the proxies I use doesn't work and the request takes an infinite amount of time to finish or fail.

It would be nice to have some sort of timeout parameter to pass to the get_transcript function, so if the request takes longer than expected, we can do something about it (try another proxy in this case).

@therohitdas
Copy link

therohitdas commented Sep 5, 2024

This should be easy to implement, as requests support timeout as kwarg.

Currently the maintainer has very limited time, and it seems that even if I make a PR, it will not get merged as better PR are in queue: #219 , #254

I suggest creating a fork and adding it yourself. You can except the requests.Timeout exception.

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