jprichardson / jprichardson/node-google

Include body in response?

Open
#19 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
456
Forks
115
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the callback calls around lines 74 and 76 in the module, and review how search results and errors are currently returned. Decide on a consistent way for callers to receive the page body or response while preserving the existing callback contract; the request is done when scraping callers can access that content.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.