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

Site Support Request: Twitter Video #7489

Closed
aaronvegh opened this issue Nov 13, 2015 · 2 comments
Closed

Site Support Request: Twitter Video #7489

aaronvegh opened this issue Nov 13, 2015 · 2 comments
Assignees

Comments

@aaronvegh
Copy link

@aaronvegh aaronvegh commented Nov 13, 2015

$ youtube-dl -v -j "https://amp.twimg.com/v/93ad3568-03d2-47b9-a57b-624b88693acd"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'-j', u'https://amp.twimg.com/v/93ad3568-03d2-47b9-a57b-624b88693acd']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.11.13
[debug] Python version 2.7.10 - Darwin-15.0.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: https://amp.twimg.com/v/93ad3568-03d2-47b9-a57b-624b88693acd
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1241, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 248, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=etree.TreeBuilder(element_factory=_element_factory)))
  File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 237, in _XML
    parser.feed(text)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: mismatched tag: line 30, column 4
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 661, in extract_info
    ie_result = ie.extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 290, in extract
    return self._real_extract(url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1839, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://amp.twimg.com/v/93ad3568-03d2-47b9-a57b-624b88693acd
@RingoTheDog
Copy link

@RingoTheDog RingoTheDog commented Nov 13, 2015

Same video different result....
https://twitter.com/starwars/status/665052190608723968

This twitter link to the video does call the YouTube-dl Twitter extractor but fails with no attribute 'groups'

c:\Transmogrifier>youtube-dl.py -v "https://twitter.com/starwars/status/665052190608723968"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'https://twitter.com/starwars/status/665052190608723968']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2015.11.13
[debug] Python version 2.7.5 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-71727-g46778ab, rtmpdump 2.4
[debug] Proxy map: {}
[twitter] 665052190608723968: Downloading webpage
Traceback (most recent call last):
File "C:\Python27\lib\runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "C:\Python27\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Transmogrifier\youtube-dl.py__main
.py", line 19, in
File "C:\Transmogrifier\youtube-dl.py\youtube_dl__init__.py", line 410, in main
File "C:\Transmogrifier\youtube-dl.py\youtube_dl__init__.py", line 400, in _real_main
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 1666, in download
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\YoutubeDL.py", line 661, in extract_info
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\extractor\common.py", line 290, in extract
File "C:\Transmogrifier\youtube-dl.py\youtube_dl\extractor\twitter.py", line 165, in _real_extract
AttributeError: 'NoneType' object has no attribute 'groups'

(maybe a different issue?)

Ringo

@jaimeMF jaimeMF self-assigned this Nov 13, 2015
@jaimeMF jaimeMF closed this in b703ebe Nov 13, 2015
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 13, 2015

The original tweet url (https://twitter.com/starwars/status/665052190608723968) will work in the next version.
Like in #7191 I don't see any reason to support the kind of URL you posted. But feel free to expose your opinion if you disagree.

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
3 participants
You can’t perform that action at this time.