pylectormanga
pylectormanga es una biblioteca que te permite buscar manga disponible a través de lectormanga. Y podrás acceder a su información.
Instalación
pip install pylectormanga
Uso
La biblioteca contiene la función search para buscar manga disponible y el objeto PyLectorManga, que tiene el parámetro url que se pasará para acceder a la información completa del manga.
A continuación te muestro cómo funciona:
from pylectormanga import search
from pylectormanga import PyLectorManga
title = str(input("Introduce el nombre del manga: "))
results = search(title)
if results == []:
print("No encontramos resultados.")
else:
print("\nEncontramos resultados: ")
for i, result in enumerate(results):
print(f"{i+1}. {result['title']} - {result['type']}")
index = int(input("\nIngresa un numero del manga al que deseas acceder: "))
information_manga = PyLectorManga(results[index - 1]['url'])
print('\n1. Información sobre el manga.')
print('2. Obtener todos los capítulos del manga.')
print('3. Obtener un capítulo específico.')
value = int(input("\nIntroduce un valor en el que quieras al acceder al menú: "))
match(value):
case 1:
manga = information_manga.get_manga_information()
print(f"\nTítulo: {manga['title']}")
print(f"Descripción: {manga['description']}")
print(f"Géneros: {manga['genre']}\n")
case 2:
for chapter in information_manga.get_all_the_chapters():
print(f"\nTítulo: {chapter['title']}")
print(f"Fecha: {chapter['date']}")
print(f"Ver manga: {chapter['url']}")
case 3:
chapter = str(input("Por favor ingresa el capítulo donde deseas obtener tu información. (Ejemplo 120.00): "))
manga = information_manga.get_one_chapter(chapter)
if not manga:
print("\nNo encontramos resultados.")
else:
print(f"\nTítulo: {manga['title']}")
print(f"Fecha: {manga['date']}")
print(f"Ver manga: {manga['url']}")
Motivo
Todo surgió cuando estaba viendo mi anime favorito Tokyo Revengers.
Metadata
Release files for PyLectorManga 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyLectorManga-0.0.1.tar.gz | 4.6 kB | Without provenance | Details for PyLectorManga-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyLectorManga-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for PyLectorManga-0.0.1-py3-none-any.whl |
Total release size: 9.7 kB
Release files / PyLectorManga-0.0.1.tar.gz
| Download URL | PyLectorManga-0.0.1.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
280f714cb21b9103ac5153d6a703aa736fb30742fa8f48d938cbf5030f683bfa
|
|
BLAKE2b-256 checksum How to use checksums |
f09c1bc12e3d4fc2ee0f48ab7ef23f9b691bbb8a6a88ffcdd89d2b16692aa4a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / PyLectorManga-0.0.1-py3-none-any.whl
| Download URL | PyLectorManga-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dcc522eba81db41e3857eac9062d47b1851a65484755480af102d4c1853441bb
|
|
BLAKE2b-256 checksum How to use checksums |
5195687cc0f144415ea8d7d98aa4455edf32d55e73d8636b686b27ebd0aafc98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for PyLectorManga 0.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.