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

Cant download video in python script #25627

Closed
ArranMcAloon opened this issue Jun 11, 2020 · 0 comments
Closed

Cant download video in python script #25627

ArranMcAloon opened this issue Jun 11, 2020 · 0 comments
Labels

Comments

@ArranMcAloon
Copy link

@ArranMcAloon ArranMcAloon commented Jun 11, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.06.06
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

[generic] watch?v=tEXYfT_G0W0 audio: Requesting header
[generic] watch?v=tEXYfT_G0W0 audio: Downloading webpage
ERROR: Unable to download webpage: <urlopen error no host given> (caused by URLError('no host given'))
  File "C:\Users\Arran\AppData\Local\Programs\Python\Python38\lib\site-packages\youtube_dl\extractor\common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "C:\Users\Arran\AppData\Local\Programs\Python\Python38\lib\site-packages\youtube_dl\YoutubeDL.py", line 2238, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "C:\Users\Arran\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 522, in open
    req = meth(req)
  File "C:\Users\Arran\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 1274, in do_request_
    raise URLError('no host given')

Description

Essentially, whenever I try to download a video using any python script this error occurs. Oddly enough, the error does not occur on my server in which hosts the script and the script has previously worked as-is.

I have tried multiple versions of python (3.6, 3.7, 3.8) and multiple versions of youtube-dl.

I have also attempted to find the answer on google to no avail.

@dstftw dstftw closed this Jun 11, 2020
@dstftw dstftw added the incomplete label Jun 11, 2020
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
2 participants
You can’t perform that action at this time.