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

Issue with safaribooksonline books #8648

Closed
flo06800 opened this issue Feb 23, 2016 · 2 comments
Closed

Issue with safaribooksonline books #8648

flo06800 opened this issue Feb 23, 2016 · 2 comments

Comments

@flo06800
Copy link

@flo06800 flo06800 commented Feb 23, 2016

Hi guys,

I saw that this tool is compatible with safaribooksonline. I wonder if it is just with videos or can we extract books as html webpage ?

Because i'm unable to do it :(

Example below:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'--username', u'PRIVATE', u'http://search.safaribooksonline.com/book/operating-systems-and-server-administration/9781785289538/1dot-getting-started-with-nginx/ch01lvl1sec08_html']
Type account password and press [Return]:
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.02.22
[debug] Python version 2.6.6 - Linux-2.6.32-573.12.1.el6.x86_64-x86_64-with-centos-6.7-Final
[debug] exe versions: none
[debug] Proxy map: {}
[generic] ch01lvl1sec08_html: Requesting header
WARNING: Falling back on generic information extractor.
[generic] ch01lvl1sec08_html: Downloading webpage
[generic] ch01lvl1sec08_html: Extracting information
ERROR: Unsupported URL: http://search.safaribooksonline.com/book/operating-systems-and-server-administration/9781785289538/1dot-getting-started-with-nginx/ch01lvl1sec08_html
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1308, 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 "/usr/lib64/python2.6/xml/etree/ElementTree.py", line 1245, in feed
self._parser.Parse(data, 0)
ExpatError: not well-formed (invalid token): line 15, column 70
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 666, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 316, in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/generic.py", line 1950, in _real_extract
raise UnsupportedError(url)
UnsupportedError: Unsupported URL: http://search.safaribooksonline.com/book/operating-systems-and-server-administration/9781785289538/1dot-getting-started-with-nginx/ch01lvl1sec08_html

Cheers.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 23, 2016

This is out of scope of youtube-dl.

@dstftw dstftw closed this Feb 23, 2016
@flo06800
Copy link
Author

@flo06800 flo06800 commented Feb 23, 2016

Waw ok. Hello to you too. Sorry to ask a question like that ....

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.