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.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 Dragon-Ball-API-Alejo 0.2
File Size Uploaded Provenance Actions
dragon_ball_api_alejo-0.2.tar.gz 9.0 kB Without provenance Details for dragon_ball_api_alejo-0.2.tar.gz

Built distribution (wheel)

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

Total release size: 26.7 kB

Release files / dragon_ball_api_alejo-0.2.tar.gz

Download URL dragon_ball_api_alejo-0.2.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
24b3f63704c2defc9e05a27a357e582d794e9d4b4326555f547925e454a1ef51
BLAKE2b-256 checksum
How to use checksums
03a77db2c8c7dc195ccb71ffaf2d3a6486996e3a4e839e4cc2cce3cbc8898bdd
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.2-py3-none-any.whl

Download URL dragon_ball_api_alejo-0.2-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc703c472636b94ed0673de9bed076451139c5249014d31cbb2135e699d21fc8
BLAKE2b-256 checksum
How to use checksums
bcb463659f7299fc1fa9b0b42e3e249b3a9c97a421cfd85766970eb5b8b4b102
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.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.

Release history Release notifications | RSS feed

This release

0.2 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