DeviantArt RSS API querying utility
Project description
deviousq is a command-line utility for querying the RSS API endpoint of the
online art sharing community DeviantArt.
Installation
To install from PyPI, run:
pip install deviousq
To clone the source repository, run:
git clone git@gitlab.com:afeder/deviousq.git
Usage
usage: deviousq [-h] [-v] [-e ENDPOINT] [-q] [-l LIMIT] [-r ORDER] [-i OFFSET] [-p PAGE] [-P PAGES]
[--start-date START_DATE] [--end-date END_DATE] [--rating RATING] [--category CATEGORY]
[--author AUTHOR] [--gallery GALLERY] [--min-width MIN_WIDTH] [--max-width MAX_WIDTH]
[--min-height MIN_HEIGHT] [--max-height MAX_HEIGHT] [--no-blurred-content] [--no-query-author]
[-o OUTPUT_TO] [-t {flat,json,csv}] [-k RETURN_FIELD] [-d DOWNLOAD_TO]
[--skip-download-exists]
[search_terms ...]
By default, the utility queries the official DeviantArt endpoint for a list of items ("deviations") related to zero or more search terms.
If the value of the --order option is 9 or "popularity", the list is ordered
by most popular first (this is the server-side default); if the value of
--order is 5 or "time", the list is ordered by newest first (this is forced
for queries on author or gallery).
An offset into the list may be specified with the --offset option, and an
upper limit on the number of items to return from the list per query (up to a
maximum of 60) may be specified with the --limit option.
If a page number is specified with the --page option, the effective offset is
increased by the page number multiplied by the limit. If a number of pages to
return is specified with the --pages option, the endpoint is queried up to
that number of times to return all items contained in that number of consecutive
pages.
The list of items to return may be reduced by applying any number of filters on
publication date (--start-date and --end-date), maturity rating
(--rating), category (--category), author username (--author), gallery
name (--gallery), and content width (--min-width and --max-width) and
height (--min-height and --max-height).
In default operation, a flat list with one URL representing each resulting
item, separated by newline characters, is output to stdout; if a field name
is specified with the --return-field option, then the value of the given
field is output for each result in flat mode. If a different output format
is specified with --output-format, a wider range of metadata is output for
each result in the given serialization format. If a download directory is
specified with the --download-to option, then the content URL of each result
is downloaded to that directory, and only the relative path to each
downloaded file is output. Finally if the --return-query flag is specified,
no queries are executed at all; instead only the URLs of the queries
corresponding to the input options are output.
If an output file is specified with --output-to, the generated output is
written to that file instead of stdout.
Run the command with the option --help for a list of descriptions of all
supported command-line options.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deviousq-0.0.1.post1.tar.gz.
File metadata
- Download URL: deviousq-0.0.1.post1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f42dd9fff759313229226e1203d2da7f106b90bcbb47e06dfd9bbb6cef6c446
|
|
| MD5 |
fd5d9023150b61cc945aecda4c7562aa
|
|
| BLAKE2b-256 |
515b68231f4e407f140d98a22a45f5ba103f8ebcc4478772b3b4accdbe77e364
|
File details
Details for the file deviousq-0.0.1.post1-py3-none-any.whl.
File metadata
- Download URL: deviousq-0.0.1.post1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
073f20fcba9e485222b0f6f32aa8a2624b1f6547e0815ad39c51d9953c908609
|
|
| MD5 |
517da50e20c65ef077307a063066edd4
|
|
| BLAKE2b-256 |
a930dfd4628827da9b67a4d6d9eeb243faa2ae640a67c88c9c6a956c28ccdba9
|