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.
[CNN] Add support for money.cnn.com #13666
Comments
|
page url: best video url: Also, hds and hls as per xml (if someone wants to add these to the extractor). |
|
Thanks for the info! I believe the link to the Fave API references a JSON-formatted data stream, rather than XML. How did you deduce the best video URL? I do not see this link referenced anywhere in the output for this API call. |
|
Another URL to consider is: http://money.cnn.com/2017/08/20/media/trump-carl-bernstein-reliable-sources/index.html Apparently this URL format does not use the Fave API for the video source. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.07.15. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
$ youtube-dl --verbose 'http://money.cnn.com/mostly-human/silicon-valleys-secret/'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'http://money.cnn.com/mostly-human/silicon-valleys-secret/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.07.15
[debug] Python version 2.7.9 - Linux-3.16.0-4-686-pae-i686-with-debian-8.7
[debug] exe versions: ffmpeg 3.2.4-1, ffprobe 3.2.4-1
[debug] Proxy map: {}
[generic] silicon-valleys-secret: Requesting header
WARNING: Falling back on generic information extractor.
[generic] silicon-valleys-secret: Downloading webpage
[generic] silicon-valleys-secret: Extracting information
ERROR: Unsupported URL: http://money.cnn.com/mostly-human/silicon-valleys-secret/
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2060, in _real_extract
doc = compat_etree_fromstring(webpage.encode('utf-8'))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2539, in compat_etree_fromstring
doc = _XML(text, parser=etree.XMLParser(target=_TreeBuilder(element_factory=_element_factory)))
File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 2528, in _XML
parser.feed(text)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
ParseError: mismatched tag: line 75, column 4
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 776, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2915, in _real_extract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://money.cnn.com/mostly-human/silicon-valleys-secret/
The extractor for the CNN website should be updated to also detect URLs such as:
http://money.cnn.com/mostly-human/silicon-valleys-secret/
Cheers,
Parmjit V.