Skip to main content

pylectormanga es una biblioteca que te permite buscar manga disponible a través de https://lectormanga.com/. Y podrás acceder a su información.

Project description

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.

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

PyLectorManga-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

PyLectorManga-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file PyLectorManga-0.0.1.tar.gz.

File metadata

  • Download URL: PyLectorManga-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for PyLectorManga-0.0.1.tar.gz
Algorithm Hash digest
SHA256 280f714cb21b9103ac5153d6a703aa736fb30742fa8f48d938cbf5030f683bfa
MD5 70d4f25f461a639968eef89886a6b773
BLAKE2b-256 f09c1bc12e3d4fc2ee0f48ab7ef23f9b691bbb8a6a88ffcdd89d2b16692aa4a6

See more details on using hashes here.

File details

Details for the file PyLectorManga-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: PyLectorManga-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for PyLectorManga-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dcc522eba81db41e3857eac9062d47b1851a65484755480af102d4c1853441bb
MD5 3f74a54d219920a6b2a8655de25b54c8
BLAKE2b-256 5195687cc0f144415ea8d7d98aa4455edf32d55e73d8636b686b27ebd0aafc98

See more details on using hashes here.

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