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

YouTube for Schools and "unable to extract uploader nickname" #719

Closed
gear3D opened this issue Feb 28, 2013 · 6 comments
Closed

YouTube for Schools and "unable to extract uploader nickname" #719

gear3D opened this issue Feb 28, 2013 · 6 comments

Comments

@gear3D
Copy link

@gear3D gear3D commented Feb 28, 2013

Currently using YouTube for Schools (http://www.youtube.com/schools) on site. Have setup a user through the YouTube admin panel. User is able to login successfully and view content unrestricted.
Example video is allowed/unfiltered for YouTube for Schools. Also receive same error for blocked/filtered content even passed YouTube account credentials.

youtube-dl -i -ctf 22 -u USER_NAME -p PASSWORD http://www.youtube.com/watch?v=w3AdFjklR50
[youtube] Setting language
[youtube] Logging in
[youtube] Confirming age
[youtube] w3AdFjklR50: Downloading video webpage
[youtube] w3AdFjklR50: Downloading video info webpage
[youtube] w3AdFjklR50: Extracting video information
WARNING: unable to extract uploader nickname
ERROR: unexpected call to parse_endtag

youtube-dl -v[debug] youtube-dl version 2013.02.02
[debug] Python version 2.7.2+ - Linux-3.0.0-12-generic-i686-with-Ubuntu-11.10-oneiric

Couldn't see any other posts regarding YouTube for Schools restriction. Not sure if you've had to tackle this in the past.

@phihag
Copy link
Contributor

@phihag phihag commented Feb 28, 2013

That sure looks like a mistake on our part, sorry! I'll look into how we can fix that.

@phihag
Copy link
Contributor

@phihag phihag commented Mar 1, 2013

The video is not available in that format, but anonymous access works fine for me:

$ youtube-dl -i -ct  http://www.youtube.com/watch?v=w3AdFjklR50
[youtube] Setting language
[youtube] w3AdFjklR50: Downloading video webpage
[youtube] w3AdFjklR50: Downloading video info webpage
[youtube] w3AdFjklR50: Extracting video information
[download] Destination: Japan Earthquake - Helicopter aerial view video of giant tsunami waves-w3AdFjklR50.flv
[download] 100.0% of 13.94M at  143.36k/s ETA 00:00

Can you reproduce that?

@gear3D
Copy link
Author

@gear3D gear3D commented Mar 7, 2013

Thank you very much for checking this out, Philipp. I must apologies for
only getting back to you now.

youtube-dl -ict http://www.youtube.com/watch?v=w3AdFjklR50
[youtube] Setting language
[youtube] w3AdFjklR50: Downloading video webpage
[youtube] w3AdFjklR50: Downloading video info webpage
[youtube] w3AdFjklR50: Extracting video information
WARNING: unable to extract uploader nickname
ERROR: unexpected call to parse_endtag

youtube-dl -ict -u USER_NAME -p PASSWORD
http://www.youtube.com/watch?v=w3AdFjklR50
[youtube] Setting language
[youtube] Logging in
[youtube] Confirming age
[youtube] w3AdFjklR50: Downloading video webpage
[youtube] w3AdFjklR50: Downloading video info webpage
[youtube] w3AdFjklR50: Extracting video information
WARNING: unable to extract uploader nickname
ERROR: unexpected call to parse_endtag

Caleb

On Fri, Mar 1, 2013 at 9:12 PM, Philipp Hagemeister <
notifications@github.com> wrote:

The video is not available in that format, but anonymous access works fine
for me:

$ youtube-dl -i -ct http://www.youtube.com/watch?v=w3AdFjklR50
[youtube] Setting language
[youtube] w3AdFjklR50: Downloading video webpage
[youtube] w3AdFjklR50: Downloading video info webpage
[youtube] w3AdFjklR50: Extracting video information
[download] Destination: Japan Earthquake - Helicopter aerial view video of giant tsunami waves-w3AdFjklR50.flv
[download] 100.0% of 13.94M at 143.36k/s ETA 00:00

Can you reproduce that?


Reply to this email directly or view it on GitHubhttps://github.com//issues/719#issuecomment-14283748
.

@TheBoroer
Copy link

@TheBoroer TheBoroer commented Aug 8, 2014

I'm running into the same issue with this video URL: http://www.youtube.com/watch?v=74wZR1nqUkg

This is the output from running the command:
youtube-dl http://www.youtube.com/watch?v=74wZR1nqUkg -v

PS. It can't even list all the available formats. This only happens to some videos.

EDIT: This error happens with and without using youtube login credentials.

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=74wZR1nqUkg', '-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.6.6 - Linux-3.10.23-xxxx-std-ipv6-64-x86_64-with-centos-6.5-Final
[debug] Proxy map: {}
[youtube] Setting language
[youtube] 74wZR1nqUkg: Downloading webpage
[youtube] 74wZR1nqUkg: Downloading video info webpage
[youtube] 74wZR1nqUkg: Extracting video information
Traceback (most recent call last):
  File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code
    exec code in run_globals
  File "./youtube-link/__main__.py", line 18, in <module>
  File "./youtube-link/youtube_dl/__init__.py", line 890, in main
  File "./youtube-link/youtube_dl/__init__.py", line 880, in _real_main
  File "./youtube-link/youtube_dl/YoutubeDL.py", line 1052, in download
  File "./youtube-link/youtube_dl/YoutubeDL.py", line 516, in extract_info
  File "./youtube-link/youtube_dl/extractor/common.py", line 170, in extract
  File "./youtube-link/youtube_dl/extractor/youtube.py", line 706, in _real_extract
  File "./youtube-link/youtube_dl/utils.py", line 373, in get_element_by_id
  File "./youtube-link/youtube_dl/utils.py", line 379, in get_element_by_attribute
  File "./youtube-link/youtube_dl/utils.py", line 302, in loads
  File "/usr/lib64/python2.6/HTMLParser.py", line 108, in feed
    self.goahead(0)
  File "/usr/lib64/python2.6/HTMLParser.py", line 150, in goahead
    k = self.parse_endtag(i)
  File "./youtube-link/youtube_dl/utils.py", line 369, in <lambda>
  File "/usr/lib64/python2.6/HTMLParser.py", line 310, in parse_endtag
    assert rawdata[i:i+2] == "</", "unexpected call to parse_endtag"
AssertionError: unexpected call to parse_endtag
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 10, 2014

With the video from @blackpropeller I can reproduce the problem with python 2.6.8, but it works in 2.7 and 3.4

@naglis naglis mentioned this issue Nov 4, 2014
@dstftw
Copy link
Collaborator

@dstftw dstftw commented May 8, 2017

Works fine with latest version.

@dstftw dstftw closed this May 8, 2017
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
5 participants
You can’t perform that action at this time.