jprichardson / jprichardson/node-google

Search Within a Time Span

Open
#59 0 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

I saw you can search in the last hour, day, month and year. Is there a possibility to search at a specific time frame ?

eg get search result from 1 January 2018 , at 16:30 till 2 January 2018 12:15 ? Or at least from 1 January 2018 till 2 January 2018 ?

Any idea how to do this?

I have found that in the google.js on line 44
URL = URL.indexOf('tbs=qdr:') >= 0 ? URL.replace(/tbs=qdr:[snhdwmy]\d*/, 'tbs=qdr:' + google.timeSpan) : URL.concat('&tbs=qdr:', google.timeSpan)
there is a google timeSpan but I am wondering how can I construct some time span to support options like this ?

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

The relevant URL construction is in google.js around line 44; start by tracing how google.timeSpan is set and how search options reach it. Check the available Google query behavior for bounded dates and times. Done means the requested time-span behavior is implemented and verified, or the limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.