scrapinghub / scrapinghub/dateparser

Add support for time ranges

Open
#938 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.9k
Forks
520
Avg merge
22h 56m
Merged PRs (30d)
6

Description

Why?

A lot of use cases for date parsing may include the need to understand date ranges. Natural language search by date may need to parse input as a time span.
Like interpreting "yesterday" as 2021.6.21 00:01 to 2021.6.21 23:60, instead of 2021.6.21 18:40.

Examples

  • Next week
  • Yesterday
  • This year
  • Next winter
  • This evening
  • Yesterday evening to Tomorrow morning
  • Monday to Friday

Implementation

Maybe it can be a parser setting. It can be implemented something like this: parse('yesterday', settings={'DATE_RANGE': True}).

Contributor guide

Open the contributing guide

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 issue names no files, tests, or entry points; start by locating the parser API and its existing settings handling. Before implementation, clarify range semantics for the listed examples and identify tests that can verify the supported inputs and resulting time spans.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.