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

Include body in response? #19

Open
favio41 opened this issue Jan 25, 2015 · 6 comments
Open

Include body in response? #19

favio41 opened this issue Jan 25, 2015 · 6 comments

Comments

@favio41
Copy link

favio41 commented Jan 25, 2015

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
Copy link
Owner

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

@cchamberlain
Copy link

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

@tomerb15
Copy link

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

+1

@jprichardson jprichardson changed the title New feature Include body in response? Nov 28, 2015
@jprichardson
Copy link
Owner

Sure. PR welcomed :)

@flesler
Copy link
Contributor

flesler commented Feb 29, 2016

Provided what I think is a more solid approach on #10 (comment)

@flesler
Copy link
Contributor

flesler commented Mar 4, 2016

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

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

5 participants