Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
Updated example to work with 0.0.8.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdoiel committed Jan 12, 2012
1 parent 0ea45ca commit dbb9550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/spider.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ runChild = function (options) {

process.on('message', function (m) {
console.log('CHILD (' + process.pid + ') spidering:', m.url);
extractor.Spider(m.url, function (err, data, cur_url, res) {
var i, new_url, urls = [], base_parts, base_path;
extractor.Spider(m.url, function (err, data, env) {
var i, new_url, urls = [], base_parts, base_path, cur_url = env.pathname, res = env.response;

base_parts = url.parse(cur_url);
base_path = base_parts.path;
Expand Down

0 comments on commit dbb9550

Please sign in to comment.