diff options
author | Nao Ueda <nao.uedder@gmail.com> | 2020-03-11 09:29:36 +0900 |
---|---|---|
committer | Nao Ueda <nao.uedder@gmail.com> | 2020-03-11 09:29:36 +0900 |
commit | ca6a7f96a59d46ce0583fa62eeb49d803f3f5a63 (patch) | |
tree | 276a36f373efaaad733ea95ba0997e4ecd547c45 /README.md | |
download | ppad-ca6a7f96a59d46ce0583fa62eeb49d803f3f5a63.tar.gz ppad-ca6a7f96a59d46ce0583fa62eeb49d803f3f5a63.tar.bz2 ppad-ca6a7f96a59d46ce0583fa62eeb49d803f3f5a63.zip |
initial commit.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..b096a61 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# Papertrail log archives downloader + +## Usage + +Please set your token to the environment variable named `PAPERTRAIL_API_TOKEN` to run the script. + +```bash +$ PAPERTRAIL_API_TOKEN=YOUR_TOKEN ./ppad.py # Download all the log archives +$ PAPERTRAIL_API_TOKEN=YOUR_TOKEN ./ppad.py 2020-01-01~2020-02-01 # Download the archives which have logged January 2020 +$ PAPERTRAIL_API_TOKEN=YOUR_TOKEN ./ppad.py 2020-01-01~ # Specified the since date (including the since date file) +$ PAPERTRAIL_API_TOKEN=YOUR_TOKEN ./ppad.py ~2020-02-01 # Specified the until date (NOT including the until date file) +``` + +The date format is ISO-8601 format supported. + +(The script uses [dateutil.isoparse](https://dateutil.readthedocs.io/en/stable/parser.html#dateutil.parser.isoparse)) |