1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00
gallery-dl/gallery_dl
Mike Fährmann 80c2e03aaa
[reddit] allow 'date-min/max' to be human readable dates
If the date-min/max config value is a string, try parsing it using
datetime.strptime [1] with 'date-format' as format string [2]
(default: "%Y-%m-%dT%H:%M:%S")

Example: get all submissions posted in 2016

$ gallery-dl reddit.com/r/... \
    -o date-format=%Y \
    -o date-min=\"2016\" \
    -o date-max=\"2017\"

[1] https://docs.python.org/3/library/datetime.html#datetime.datetime.strptime
[2] https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior
2017-07-01 18:46:38 +02:00
..
downloader [downloader] fix extension from content-type 2017-06-19 09:24:00 +02:00
extractor [reddit] allow 'date-min/max' to be human readable dates 2017-07-01 18:46:38 +02:00
__init__.py extend the output of '--list-extractors' 2017-06-28 18:51:47 +02:00
__main__.py
adapter.py
aes.py small fix for aes_cbc_decrypt_text 2017-06-30 15:21:04 +02:00
cache.py fix some smaller stuff 2017-03-27 14:30:32 +02:00
cloudflare.py update unit tests 2017-04-08 11:02:32 +02:00
config.py fix some smaller stuff 2017-03-27 14:30:32 +02:00
exception.py
job.py code cleanup and fixing tests 2017-06-02 09:10:58 +02:00
option.py extend the output of '--list-extractors' 2017-06-28 18:51:47 +02:00
output.py add '-q/--quiet' option 2017-04-26 11:33:19 +02:00
text.py [deviantart] add support for all media types 2017-05-10 16:45:45 +02:00
util.py smaller fixes and "security" measures 2017-06-16 21:01:40 +02:00
version.py update extractor docstrings 2017-06-28 17:39:07 +02:00