Open florestdev opened 1 week ago
from pytubefix import YouTube
proxy = {
"http": "socks5://proxy_address",
"https": "socks5://proxy_address"
}
url = "url"
yt = YouTube(url, proxies=proxy)
print(yt.title)
ys = yt.streams.get_highest_resolution()
ys.download()
from pytubefix import YouTube proxy = { "http": "socks5://proxy_address", "https": "socks5://proxy_address" } url = "url" yt = YouTube(url, proxies=proxy) print(yt.title) ys = yt.streams.get_highest_resolution() ys.download()
Thanks. But I want to know how use private proxies with username and password. How can I do this?
with a username and password
{
"http": "socks5://user:pass@socks5.example.com:1080",
"https": "socks5://user:pass@socks5.example.com:1080"
}
without
{
"http": "socks5://socks5.example.com:1080",
"https": "socks5://socks5.example.com:1080"
}
with a username and password
{ "http": "socks5://user:pass@socks5.example.com:1080", "https": "socks5://user:pass@socks5.example.com:1080" }
without
{ "http": "socks5://socks5.example.com:1080", "https": "socks5://socks5.example.com:1080" }
Sorry, but that's exactly what I did. What should I do if I get the error "The destination computer rejected the connection request"?
I had the same error when using a free VPN, YouTube itself worked without problems, but I couldn't download anything through pytube. After buying a paid VPN/Proxy everything worked as it should.
I had the same error when using a free VPN, YouTube itself worked without problems, but I couldn't download anything through pytube. After buying a paid VPN/Proxy everything worked as it should.
My proxy is private. What can I do? (I paid for this)
Does YouTube itself work through your proxy?
Does YouTube itself work through your proxy?
Yeah, bro. It works.
I suggest you try changing socks5 to http(s), in most cases you can do this on the website of the proxy you bought. And I want to make sure, are you using an IPv4 proxy?
I suggest you try changing socks5 to http(s), in most cases you can do this on the website of the proxy you bought. And I want to make sure, are you using an IPv4 proxy? Okey. I will change a protocol right now. Yes, I use IPv4.
:exclamation: DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE :exclamation:
lack of information will lead to closure of the issue
Describe the bug A clear and concise description of what the bug is.
code that was used that resulted in the bug
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.