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.4

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.4
File Size Uploaded Provenance Actions
dragon_ball_api_alejo-0.4.tar.gz 9.2 kB Without provenance Details for dragon_ball_api_alejo-0.4.tar.gz

Built distribution (wheel)

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

Total release size: 26.0 kB

Release files / dragon_ball_api_alejo-0.4.tar.gz

Download URL dragon_ball_api_alejo-0.4.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
37ab57abb2477126c867d5263a1aee24c373271973a71922d376270b98adcd2e
BLAKE2b-256 checksum
How to use checksums
5c8a6b7ef7c088005337d8d50d6fdb7a8ca2490e51e34f1ff5dfe366ed21e74b
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.4-py3-none-any.whl

Download URL dragon_ball_api_alejo-0.4-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0871caeb08d3bc42ce793ea7dc30418249ed0129a8834e4f515b756cd6d9b0ef
BLAKE2b-256 checksum
How to use checksums
9a57cf6d04f1d14cff65469040c5d27feeedd0d09e160172de64f6bb2082da78
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.4

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.4 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