Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Call proxy server multiple times in python program #26289
Comments
|
Do not touch youtube-dl's cache. |
Checklist
Question
I used youtube-dl with proxy server to get json output in my python program. I found my proxy server was called 3 times.
START RequestId: xxxxxxxxxxxx Version: $LATEST
[youtube] aFkcAH-m9W0: Downloading webpage
[youtube] aFkcAH-m9W0: Downloading js player c0a91787
[youtube] aFkcAH-m9W0: Downloading js player c0a91787
END RequestId: xxxxxxxxxxxx
However, if I call youtube-dl in my terminal like this:
youtube-dl -J https://www.youtube.com/watch?v=aFkcAH-m9W0 --proxy http://xxxxxxx:80I tested that my proxy server was only called once.
How can I modify my python code to only call proxy server once?