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

ReferenceError when scraping #2

Closed
thomasbrus opened this issue Dec 30, 2010 · 3 comments
Closed

ReferenceError when scraping #2

thomasbrus opened this issue Dec 30, 2010 · 3 comments

Comments

@thomasbrus
Copy link

Hi,

scraper('http://bbc.co.uk/', function(err, jQuery) {
if (err) {throw err}
});

.. throws many errors in the form of 'ReferenceError: [some tag] is not defined'

I can't copy&paste the whole error message here since windows command line won't let me.

@mape
Copy link
Owner

mape commented Dec 31, 2010

I can't reproduce the error and I don't have a Windows box to test node on. Any chance you are able to check if it is jsdom breaking rather then node-scraper?

@thomasbrus
Copy link
Author

It is indeed jsdom that throws the errors I discoverd. Probaly caused by javascript on the bbc site which inserts invalid HTML elements. I'm not quite sure how to solve this.

@mape
Copy link
Owner

mape commented Dec 31, 2010

Best idea is probably to file an issue on https://github.com/tmpvar/jsdom

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants