PyLectorManga


NamePyLectorManga JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/fcoagz/pylectormanga
Summarypylectormanga es una biblioteca que te permite buscar manga disponible a través de https://lectormanga.com/. Y podrás acceder a su información.
upload_time2023-09-28 03:54:24
maintainer
docs_urlNone
authorFrancisco Griman
requires_python>=3.9
licenseMIT
keywords manga lector manga pylectormanga
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pylectormanga
pylectormanga es una biblioteca que te permite buscar manga disponible a través de [lectormanga](https://lectormanga.com/). Y podrás acceder a su información.

## Instalación
```sh
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:

```python
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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fcoagz/pylectormanga",
    "name": "PyLectorManga",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "Manga,Lector Manga,PyLectorManga",
    "author": "Francisco Griman",
    "author_email": "Francisco Griman <grihardware@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/f0/9c/1bc12e3d4fc2ee0f48ab7ef23f9b691bbb8a6a88ffcdd89d2b16692aa4a6/PyLectorManga-0.0.1.tar.gz",
    "platform": null,
    "description": "# pylectormanga\r\npylectormanga es una biblioteca que te permite buscar manga disponible a trav\u00e9s de [lectormanga](https://lectormanga.com/). Y podr\u00e1s acceder a su informaci\u00f3n.\r\n\r\n## Instalaci\u00f3n\r\n```sh\r\npip install pylectormanga\r\n```\r\n## Uso\r\nLa biblioteca contiene la funci\u00f3n `search` para buscar manga disponible y el objeto `PyLectorManga`, que tiene el par\u00e1metro url que se pasar\u00e1 para acceder a la informaci\u00f3n completa del manga.\r\n\r\nA continuaci\u00f3n te muestro c\u00f3mo funciona:\r\n\r\n```python\r\nfrom pylectormanga import search\r\nfrom pylectormanga import PyLectorManga\r\n\r\ntitle   = str(input(\"Introduce el nombre del manga: \"))\r\nresults = search(title)\r\n\r\nif results == []:\r\n    print(\"No encontramos resultados.\")\r\nelse:\r\n    print(\"\\nEncontramos resultados: \")\r\n    for i, result in enumerate(results):\r\n        print(f\"{i+1}. {result['title']} - {result['type']}\")\r\n    \r\n    index = int(input(\"\\nIngresa un numero del manga al que deseas acceder: \"))\r\n    information_manga = PyLectorManga(results[index - 1]['url'])\r\n\r\n    print('\\n1. Informaci\u00f3n sobre el manga.')\r\n    print('2. Obtener todos los cap\u00edtulos del manga.')\r\n    print('3. Obtener un cap\u00edtulo espec\u00edfico.')\r\n\r\n    value = int(input(\"\\nIntroduce un valor en el que quieras al acceder al men\u00fa: \"))\r\n\r\n    match(value):\r\n        case 1:\r\n            manga = information_manga.get_manga_information()\r\n\r\n            print(f\"\\nT\u00edtulo: {manga['title']}\")\r\n            print(f\"Descripci\u00f3n: {manga['description']}\")\r\n            print(f\"G\u00e9neros: {manga['genre']}\\n\")\r\n        case 2:\r\n            for chapter in information_manga.get_all_the_chapters():\r\n                print(f\"\\nT\u00edtulo: {chapter['title']}\")\r\n                print(f\"Fecha: {chapter['date']}\")\r\n                print(f\"Ver manga: {chapter['url']}\")\r\n        case 3:\r\n            chapter = str(input(\"Por favor ingresa el cap\u00edtulo donde deseas obtener tu informaci\u00f3n. (Ejemplo 120.00): \"))\r\n            manga = information_manga.get_one_chapter(chapter)\r\n\r\n            if not manga:\r\n                print(\"\\nNo encontramos resultados.\")\r\n            else:\r\n                print(f\"\\nT\u00edtulo: {manga['title']}\")\r\n                print(f\"Fecha: {manga['date']}\")\r\n                print(f\"Ver manga: {manga['url']}\")\r\n```\r\n## Motivo\r\nTodo surgi\u00f3 cuando estaba viendo mi anime favorito Tokyo Revengers.\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "pylectormanga es una biblioteca que te permite buscar manga disponible a trav\u00e9s de https://lectormanga.com/. Y podr\u00e1s acceder a su informaci\u00f3n.",
    "version": "0.0.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/fcoagz/pylectormanga/issues",
        "Homepage": "https://github.com/fcoagz/pylectormanga"
    },
    "split_keywords": [
        "manga",
        "lector manga",
        "pylectormanga"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5195687cc0f144415ea8d7d98aa4455edf32d55e73d8636b686b27ebd0aafc98",
                "md5": "3f74a54d219920a6b2a8655de25b54c8",
                "sha256": "dcc522eba81db41e3857eac9062d47b1851a65484755480af102d4c1853441bb"
            },
            "downloads": -1,
            "filename": "PyLectorManga-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3f74a54d219920a6b2a8655de25b54c8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 5058,
            "upload_time": "2023-09-28T03:54:21",
            "upload_time_iso_8601": "2023-09-28T03:54:21.162163Z",
            "url": "https://files.pythonhosted.org/packages/51/95/687cc0f144415ea8d7d98aa4455edf32d55e73d8636b686b27ebd0aafc98/PyLectorManga-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f09c1bc12e3d4fc2ee0f48ab7ef23f9b691bbb8a6a88ffcdd89d2b16692aa4a6",
                "md5": "70d4f25f461a639968eef89886a6b773",
                "sha256": "280f714cb21b9103ac5153d6a703aa736fb30742fa8f48d938cbf5030f683bfa"
            },
            "downloads": -1,
            "filename": "PyLectorManga-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "70d4f25f461a639968eef89886a6b773",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4618,
            "upload_time": "2023-09-28T03:54:24",
            "upload_time_iso_8601": "2023-09-28T03:54:24.812275Z",
            "url": "https://files.pythonhosted.org/packages/f0/9c/1bc12e3d4fc2ee0f48ab7ef23f9b691bbb8a6a88ffcdd89d2b16692aa4a6/PyLectorManga-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-28 03:54:24",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fcoagz",
    "github_project": "pylectormanga",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "pylectormanga"
}
        
Elapsed time: 0.11168s