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

TypeError: Cannot read property 'firstChild' of null #1

Closed
eax opened this issue Mar 8, 2011 · 3 comments
Closed

TypeError: Cannot read property 'firstChild' of null #1

eax opened this issue Mar 8, 2011 · 3 comments

Comments

@eax
Copy link

eax commented Mar 8, 2011

I'm creating crawler as:

var c = new Crawler({
'maxConnections':1,
'callback': function(error, result, $){
$('td.title + a').each(function(a){
var tmp = new blogitem(a.val, a.href);
news.push(tmp);
});
uploadPosts(news);
}
});

setInterval(function(){
c.queue([{
'uri': 'http://127.0.0.1/posts',
'timeout': 120
}]);
}, 10000);

When I run the server.js, it gives TypeError: Cannot read property 'firstChild' of null. I've tried just to put sys.puts(response) in the callback, but the result is the same...

@eax
Copy link
Author

eax commented Mar 8, 2011

by the way, crawler@0.0.2, jsdom@0.2.0

@sylvinus
Copy link
Collaborator

Hi,

I also had trouble with jsdom@0.2.0 with node 0.3.x so I released node-crawler 0.0.3 with dependency jsdom = 0.1.20 ...

I will probably release 0.1 soon with node 0.4.x and jsdom 0.2.x compatibility

@eax
Copy link
Author

eax commented Mar 15, 2011

great, thanks...let me try that...

mike442144 pushed a commit that referenced this issue Jan 5, 2018
cffi - new version, python.h needed for compile
mike442144 pushed a commit that referenced this issue Nov 23, 2020
milestone for the http2 crawler function added, basic functionality a…
Miniast added a commit that referenced this issue May 6, 2024
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