Skip to main content

ua-card-image-grep

Download UNION ARENA card images from rugiacreation.com search result pages.

Installation

pip install ua-card-image-grep

Requires Python 3.14+.

Usage

from ua_card_image_grep import getUAcard

paths = getUAcard(
    "明日方舟-藍",
    "https://rugiacreation.com/ua/search?Name=HK&Version=ARK&Color1=%E8%97%8D",
)

The images are saved to cards/明日方舟-藍/, and the function returns a list of the image paths.

getUAcard(serial_name, url, output="cards", *, delay=0.8, timeout=30, overwrite=False, html=None)

Parameter Description
serial_name Name of the folder that stores the downloaded images (created under output).
url Search result page to scrape.
output Base output directory. Default cards.
delay Seconds to wait between image downloads. Default 0.8.
timeout HTTP timeout in seconds. Default 30.
overwrite Re-download images that already exist. Default False (existing files are skipped).
html Parse this saved HTML instead of fetching url.

Raises RuntimeError if no cards are found at the page.

File names

Images are named {card id}_{rarity}.{ext}, for example:

UA43BT_SMD-1-042_C.jpg
UA43BT_SMD-1-046_2_SR★★.jpg

Alternate-art cards have _2 (or _3) in the card id, so they never overwrite the normal card.

Preset URLs

url_map holds search URLs for some sets:

from ua_card_image_grep import getUAcard, url_map

getUAcard("破曉傳說-藍", url_map["破曉傳說-藍"])

Command line

python -m ua_card_image_grep 明日方舟-藍 "https://rugiacreation.com/ua/search?Name=HK&Version=ARK&Color1=%E8%97%8D" -o ./cards

If the URL is omitted and serial_name is a key of url_map, the preset URL is used. Other options: --delay, --timeout, --overwrite.

License

See LICENSE.

Metadata

Release files for ua-card-image-grep 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ua-card-image-grep 0.1.2
File Size Uploaded Provenance Actions
ua_card_image_grep-0.1.2.tar.gz 9.8 kB Without provenance Details for ua_card_image_grep-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ua-card-image-grep 0.1.2
File Interpreter ABI Platform Actions
ua_card_image_grep-0.1.2-py3-none-any.whl Python 3 none any Details for ua_card_image_grep-0.1.2-py3-none-any.whl

Total release size: 20.3 kB

Release files / ua_card_image_grep-0.1.2.tar.gz

Download URL ua_card_image_grep-0.1.2.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4062cd397b3ae66d9048cdec9fb04c400eb749d4eb375081b210bae660369ffc
BLAKE2b-256 checksum
How to use checksums
55d2e3b4ae725aacba0444663a6ca0a6113e0ab7a45dac8546661cdda05ab702
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ua_card_image_grep-0.1.2-py3-none-any.whl

Download URL ua_card_image_grep-0.1.2-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f580e12ee3cba493da561e2ba9411fe21dae4dc96a1fb7004e3335329f4e32e
BLAKE2b-256 checksum
How to use checksums
4bec989b3ea0a6dbe0309bed52da138a0501d067a21a799bffc2bd3a750c0f9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for ua-card-image-grep 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page