jprichardson / node-google

A Node.js module to search and scrape Google.
MIT License
454 stars 115 forks source link

Include body in response? #19

Open favio41 opened 9 years ago

favio41 commented 9 years ago

Hi, is possible return also de body of the page, to do more scraping? like get the content on the left of the page of google? can be done easly changing:

callback(null, nextFunc, links, body); //in line 74
callback(new Error('E......dy), null, null, null); // in line 76

Or add a object that include body & response

Cheers, and great job!

jprichardson commented 9 years ago

Hmm, I like the idea of returning body and response...

cchamberlain commented 9 years ago

+1, this would be very useful since people will probably need to perform duplicate requests without it.

tomerb15 commented 8 years ago

getting the body will also help us get the "Did you mean" spelling check results in case the string has typo.

+1

jprichardson commented 8 years ago

Sure. PR welcomed :)

flesler commented 8 years ago

Provided what I think is a more solid approach on https://github.com/jprichardson/node-google/issues/10#issuecomment-190263024

flesler commented 8 years ago

Proposed a solution, with docs and tests updated on #38