Skip to main content

Scrapper-DragonBall

Scrapper unofficial de Dragon Ball inspirado en su fandom. https://dragonball.fandom.com/es/wiki/Dragon_Ball_Wiki_Hispano. Esta api nos permite obtener datos de personajes, sagas, fusiones, lugares y videojuegos de manera sencilla. Para poder utilizarlo en nuestras aplicaciones.

Requiere version python 3.9

Requerimientos

Para instalar los requerimientos instale los requerimientos del archivo requirements.txt con el siguiente comando

pip install -r requirements.txt

Importaciones

from DragonBall.Data.Characters import Characters
from DragonBall.Data.Sagas import Sagas
from DragonBall.Data.Planets import Planets
from DragonBall.Data.Fusions import Fusions
from DragonBall.Data.VideoGames import VideoGames
from DragonBall.Data.OutInformation import OutInformation

Instalación

pip install Dragon-Ball-API

Usage

>>> from DragonBall.Data.Characters import Characters

>>> search_goku = Characters('Goku')
>>> search_goku.character_information()

{
'name': 'Son Goku', 'image': 'https://example.com', 'description': 'descripcion', 
'names': {'japan_name': '...', 'latin_name': '...', 'pronunciation_name': '...', 'other_names': '...'}, 
'data': {'gender': '...', 'birthday': '...', 'origin': '...', 'family': ['...','...'], 'transformations': ['...', '...'], etc.. },
'debut': {'sagas': [{'title': '...', 'url': '...'}], 'debut': '...'}
}

Algunos personajes tendran más datos que otros. Eso dependera de la información que se encuentre en la wiki de dragon ball en ese momento. Si deseamos podemos pasar una lista de personajes a buscar y usar el método list para devolvernos la información de todos los personajes.

>>> from DragonBall.Data.Characters import Characters

goku_family = ['Son Gohan (abuelo)', 'Bardock', 'Gine', 'Raditz', 'Rey Gyuma', 'Milk', 'Gohan', 'Goten', 'Mr. Satán', 'Videl', 'Pan', 'Son Goku Jr.']

>>> character_list = Characters.character_list(goku_family)

[{'...'},{'...'}]

Podemos ver una lista de los personajes usando el método list de la clase. De la siguiente manera.

>>> Characters.list()

{
'Personajes por raza': ['Androides', 'Animales', 'Arlianos', 'Ángeles', '...', '...'],
'Personajes por asociación': ['...', '...', '...']
}

Si queremos imprimir los datos de manera más legible podemos utilizar el método beautiful_print_dict de la clase OutInformation

>>> OutInformation.beautiful_print_dict(Characters.list())

"Personajes por raza": [
    "Androides",
    "Animales",
    "Arlianos",
    "Ángeles",
    "..."
 ]

Todos estos metodos los podemos aplicar en todas sus clases (sagas, juegos, etc).

Metadata

Release files for Dragon-Ball-API-Alejo 0.1

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

Source distribution (sdist)

Source distribution for Dragon-Ball-API-Alejo 0.1
File Size Uploaded Provenance Actions
dragon_ball_api_alejo-0.1.tar.gz 8.7 kB Without provenance Details for dragon_ball_api_alejo-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Dragon-Ball-API-Alejo 0.1
File Interpreter ABI Platform Actions
dragon_ball_api_alejo-0.1-py3-none-any.whl Python 3 none any Details for dragon_ball_api_alejo-0.1-py3-none-any.whl

Total release size: 26.0 kB

Release files / dragon_ball_api_alejo-0.1.tar.gz

Download URL dragon_ball_api_alejo-0.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
25a812700a412d515b1c7d926178e0b23c7f76fb39c7d9e8a98b067380548eb4
BLAKE2b-256 checksum
How to use checksums
02ec920fd90c4b1b743dc2dc7e9eb8a805b4fd661ed5467f945f2e94310be795
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / dragon_ball_api_alejo-0.1-py3-none-any.whl

Download URL dragon_ball_api_alejo-0.1-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bd7b53f10e06ad5ed68123be76392dd0883f658dc2f3e09557464e213b3de40
BLAKE2b-256 checksum
How to use checksums
768f23cde132fdd5b53332e4d4cd3d74db4743fd1d1fedceb46be27592f2428d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for Dragon-Ball-API-Alejo 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

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