Skip to main content

CLI Python pour synchroniser les cartes Riftbound depuis la galerie officielle.

Project description

Riftbound Scraper

CLI Python pour synchroniser localement les cartes Riftbound depuis la galerie officielle : extraction source, normalisation métier, persistence SQLite et téléchargement d'assets.

Prérequis

  • Python 3.11 ou 3.12
  • Accès réseau pour sets et sync (la suite de tests fonctionne sans site live)

Installation

git clone https://github.com/baobabgit/python-baobab-riftbound-scraper.git
cd python-baobab-riftbound-scraper
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"

Vérifier l'installation :

riftbound-scraper --version
riftbound-scraper --help

Usage rapide

# Lister les sets détectés dans la source
riftbound-scraper sets

# Synchroniser un set (ex. UNL)
riftbound-scraper sync --set UNL

# Synchroniser tous les sets
riftbound-scraper sync --all

# Vérifier la cohérence locale (DB + fichiers assets)
riftbound-scraper verify

# Afficher les compteurs locaux
riftbound-scraper stats

Les données sont stockées sous :

data/database/riftbound.db    # SQLite
data/assets/                  # Images et icônes

Voir docs/007_cli_commands.md pour le détail des commandes et codes de sortie.

Validation locale

pytest
coverage run -m pytest && coverage report
black --check src tests
flake8 src tests
pylint src tests
mypy src tests
python -m bandit -r src

Guide complet : docs/008_validation_commands.md.

Documentation technique

Document Contenu
docs/002_project_structure.md Arborescence et couches
docs/003_source_gallery_extraction.md Client source et __NEXT_DATA__
docs/004_card_normalization.md Normalisation métier
docs/005_sqlite_persistence.md Persistence SQLite
docs/006_assets_download.md Téléchargement et déduplication assets
docs/007_cli_commands.md Commandes CLI
docs/008_validation_commands.md Suite qualité et tests
docs/009_project_operations.md Exploitation, CI et workflow Cursor

Développement avec Cursor AI

  1. Choisir un backlog dans docs/product/003_backlogs_cursor_ai.md
  2. Créer la branche associée (prompts/...)
  3. Ouvrir le prompt dans docs/prompts/backlogs/
  4. Suivre le workflow décrit dans docs/009_project_operations.md

CI

  • CI (.github/workflows/ci.yml) : qualité, tests et build sur chaque PR / push vers main
  • Release (.github/workflows/release.yml) : publication sur tag v*.*.*

Licence

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

riftbound_scraper-1.0.0.tar.gz (121.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

riftbound_scraper-1.0.0-py3-none-any.whl (69.6 kB view details)

Uploaded Python 3

File details

Details for the file riftbound_scraper-1.0.0.tar.gz.

File metadata

  • Download URL: riftbound_scraper-1.0.0.tar.gz
  • Upload date:
  • Size: 121.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for riftbound_scraper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2b46d11ab2bc255b9f6f8ab4b8eea977364ce134deb63113d60760c0f0b8ec5b
MD5 d2a7f4a754e1c886e09d95d00d08df68
BLAKE2b-256 a44afe2b269b4bbdae44357eb394168d5580e1a94d334a8beaf4bf7df0f64e17

See more details on using hashes here.

Provenance

The following attestation bundles were made for riftbound_scraper-1.0.0.tar.gz:

Publisher: release.yml on baobabgit/python-baobab-riftbound-scraper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file riftbound_scraper-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for riftbound_scraper-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd9cde2dd075814befe33ae51304ddd8245d4f335b83720987261d4b0f5f6db
MD5 a2883aa6c373fd0506f00afc4624cbae
BLAKE2b-256 6e16e26cd81d2b23ea8a462a2a5cdacf4ab701a37a640aa7023687ac2ef57eb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for riftbound_scraper-1.0.0-py3-none-any.whl:

Publisher: release.yml on baobabgit/python-baobab-riftbound-scraper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page