e6* downloader without a memory leak
An e6* downloader without a memory leak!
Configuration is done by setting values in the script storage. Below are the values and their types.
| Name | Type | Description |
|---|---|---|
| clientName | string | Replaces the client name sent |
| maximumAttempts | number | Maximum times a resource is fetched before giving up |
| rememberHashes | boolean | Whether to save the hashes from the download list |
| userAgentCompliant | boolean | Whether to send the client name |
Red 40 doesn't save the metadata retrieved after downloading it. To manipulate downloaded JSON data, jq is recommended.
Below are some examples for common tasks using jq on a Unix-like machine.
jq '.[] | select(.id >= 0 and .id < 2000000)' download.json
jq '.[] | select(.extension == "jpg" or .extension == "png")' download.json
jq '.[] | select(.tags | contains(["male", "2019", "webm"]))' download.json
jq -s 'add | unique_by(.id) | select(.tags | contains(["female", "2020"]))' download1.json download2.json download3.json