We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you crawl documents of type text/xml, the "response body is not HTML, skip injecting" warning is triggered and no cheerio/jsdom is injected.
text/xml
I propose changing crawler.js:389 to: if (!options.html && !typeis(contentType(response), ['html','xhtml','text/xml'])){ (include the 'text/xml')
if (!options.html && !typeis(contentType(response), ['html','xhtml','text/xml'])){
When this is done, cheerio is injected and the XML document is parsed correctly and res.$ works great.
Thanks for the great package!
The text was updated successfully, but these errors were encountered:
hey, it seems good, could you open a pull request?
Sorry, something went wrong.
No branches or pull requests
When you crawl documents of type
text/xml
, the "response body is not HTML, skip injecting" warning is triggered and no cheerio/jsdom is injected.I propose changing crawler.js:389 to:
if (!options.html && !typeis(contentType(response), ['html','xhtml','text/xml'])){
(include the 'text/xml')
When this is done, cheerio is injected and the XML document is parsed correctly and res.$ works great.
Thanks for the great package!
The text was updated successfully, but these errors were encountered: