node-google icon indicating copy to clipboard operation
node-google copied to clipboard

Include body in response?

Open favio41 opened this issue 10 years ago • 6 comments

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!

favio41 avatar Jan 25 '15 13:01 favio41

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

jprichardson avatar Jan 26 '15 06:01 jprichardson

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

cchamberlain avatar May 26 '15 01:05 cchamberlain

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

+1

tomerb15 avatar Nov 28 '15 16:11 tomerb15

Sure. PR welcomed :)

jprichardson avatar Nov 28 '15 16:11 jprichardson

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

flesler avatar Feb 29 '16 15:02 flesler

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

flesler avatar Mar 04 '16 18:03 flesler