You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the crawler encounters a page such as http://hypem.com/blog/a/1?ax=1 that contains an HTML fragment and not a complete document, the crawler will crash when trying to appendChild() a jQuery script element on the undefined window.document.body object. One option might be to add support for the HTML5 parser library which should be able to handle fragments: https://github.com/aredridel/html5
A short repro:
varCrawler=require('node-crawler').Crawler;varcrawler=newCrawler({maxConnections: 1,callback: function(err,res,$){console.log('worked!');// The app will crash before this point}});crawler.queue(['http://hypem.com/blog/a/1?ax=1']);
The text was updated successfully, but these errors were encountered:
If the crawler encounters a page such as http://hypem.com/blog/a/1?ax=1 that contains an HTML fragment and not a complete document, the crawler will crash when trying to appendChild() a jQuery script element on the undefined window.document.body object. One option might be to add support for the HTML5 parser library which should be able to handle fragments: https://github.com/aredridel/html5
A short repro:
The text was updated successfully, but these errors were encountered: