Skip to content

Add support for seaching by date #37

@TomDonoghue

Description

@TomDonoghue

It would be nice to add support for specifying date ranges to search for with LISC, for EUtils.

There are some notes on optional parameters for dates here:
https://www.ncbi.nlm.nih.gov/books/NBK25499/

There looks to be two ways to do things:

    1. search for things in the last n day
    1. search for things between two specified dates

There is also a datetype option to specify things like "modification date" or "publication date". By default, we want publication date. I guess maybe might as well make this user definable though as well. I think, if it's easy, adding support for both both types of date makes sense. Note that these settings are only relevant to EQuery, and ESearch (I think).

Mainly, I think doing this relates to the URLs handling in the eutils file:
https://github.com/lisc-tools/lisc/blob/master/lisc/urls/eutils.py

Otherwise, this will also just need some checking through the code for managing & accepting these extra settings.

I'm hoping this is an easy extension! This is the kind of update of is somewhat depending on knowing a bit about the codebase, and overall organization and approach - which in this case is to connect to a RESTful API (from EUtils).

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.2Updates to go into a 0.2.0 releaseenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions