akamhy / waybackpy

Wayback Machine API interface & a command-line tool
https://pypi.org/project/waybackpy/
MIT License
452 stars 32 forks source link

Before/After methods #174

Closed ArztKlein closed 1 year ago

ArztKlein commented 1 year ago

Is your feature request related to a problem? Please describe. Currently there is the near() function, but there isn't any built-in way to choose whether you want something to be before/after the date.

Describe the solution you'd like Methods called something like "before", "after" for the CDX Api which gets the nearest snapshot before/after the given date.

Describe alternatives you've considered Considered adding a keyword parameter for the near() function, but that would create a mess and slow things down.

Additional context N/A

I'll add this feature myself (if approved)