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

how to configure youtebe-dl when using PAC on windows 7 #8278

Open
zhpower opened this issue Jan 20, 2016 · 9 comments
Open

how to configure youtebe-dl when using PAC on windows 7 #8278

zhpower opened this issue Jan 20, 2016 · 9 comments
Labels

Comments

@zhpower
Copy link

@zhpower zhpower commented Jan 20, 2016

hi,
I use a PAC file on windows 7 to access the internet.
I try the command "youtube-dl --proxy http://127.0.0.1:16823/adf.pac https://www.youtube.com/watch?v=ByVPaqN9594" to download some files. but it failed.
i'm not sure if it' correct to set parameter. Could you help me?
Thanks.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 20, 2016

PAC is not supported in youtube-dl.

@shengdie
Copy link

@shengdie shengdie commented Jul 19, 2016

Yes, please. Really need PAC be supported.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jul 20, 2016

I have an experimental PAC support at https://github.com/yan12125/youtube-dl/tree/proxy-auto-config-support. There are some limitations in this version:

  1. SOCKS proxies are not supported yet
  2. You need to install python-pacparser
  3. Only PAC URLs are supported. Local PAC files are in TODO.
@yan12125 yan12125 mentioned this issue Aug 30, 2016
4 of 8 tasks complete
@spookyahell
Copy link

@spookyahell spookyahell commented Aug 30, 2016

How do I use this and is this experiment already implemented in the Windows binary?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 30, 2016

It's not integrated into Windows binaries yet. The following steps should work:

  1. Install Python 2.7 or Python 3.4
  2. Download https://github.com/yan12125/youtube-dl/archive/proxy-auto-config-support.zip and extract
  3. Install python-pacparser from https://github.com/pacparser/pacparser/releases
  4. youtube-dl --pac-url <the PAC url> <the video URL>
@yan12125 yan12125 mentioned this issue Nov 28, 2016
4 of 8 tasks complete
@normalzero
Copy link

@normalzero normalzero commented Dec 15, 2016

C:\Users\Administrator>youtube-dl --pac-url http://localhost/jp.pac --username root --password pac.nagro.net https://www.youtube.com/watch?v=ByVPaqN9594
[youtube] Downloading login page
WARNING: unable to fetch login page: <urlopen error Tunnel connection failed: 407 Proxy Authentication Required>
[youtube] ByVPaqN9594: Downloading webpage
ERROR: Unable to download webpage: <urlopen error Tunnel connection failed: 407 Proxy Authentication Required> (caused by URLErr
or(OSError('Tunnel connection failed: 407 Proxy Authentication Required',),))

What's the matter?What should I configure the authentication?

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 15, 2016

Hmm two people encounter the same error, see #11447

@normalzero
Copy link

@normalzero normalzero commented Dec 15, 2016

thanks a lot

@retsyo
Copy link

@retsyo retsyo commented Mar 14, 2018

has this function merged into official release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.