listvideo


Namelistvideo JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryListVideo es una biblioteca que facilita la interacción con las listas de reproducción de YouTube. Permite acceder a los metadatos de los videos y organizarlos de manera eficiente.
upload_time2024-04-13 13:26:00
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License Copyright (c) 2024 Francisco Griman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords youtube playlist video
VCS
bugtrack_url
requirements flask flask_cors pytube cachetools
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # listvideo

ListVideo es una biblioteca que facilita la interacción con las listas de reproducción de YouTube. Permite acceder a los metadatos de los videos y organizarlos de manera eficiente.

## Uso

La clase `Playlist` permite interactuar con una lista de reproducción de YouTube. Para utilizarla, debes instanciarla con el ID de la lista de reproducción que deseas analizar.

### Obtener información de la lista de reproducción

```py
from listvideo import Playlist

ID_PLAYLIST = "ID-PLAYLIST-YT"
lv = Playlist(ID_PLAYLIST)

author = lv.author # Obtiene el creador de la lista de reproducción
title  = lv.title # Obtiene el título de la lista de reproducción
```

### Acceder a la información de cada video
```py
from listvideo import Playlist

ID_PLAYLIST = "ID-PLAYLIST-YT"
lv = Playlist(ID_PLAYLIST)

videos = lv.videos
for i in range(len(videos)):
    print(f'{i}. {videos[i].title} - {videos[i].author}') # Imprime el título y el autor de cada video
```

La clase `Video` tiene varios atributos que puedes utilizar para obtener información detallada sobre cada video:

```py
class Video:
    title: str # Título del video
    description: str # Descripción del video
    length: str # Duración del video
    url: str # URL del video
    thumbnail_url: str # URL de la miniatura del video
    author: str # Autor del video
    id_author: str | None # ID del autor del video (puede ser None)
```

El objetivo de ListVideo es permitirte organizar y almacenar canales de YouTube que tengan más de dos videos en la lista de reproducción.

```py
from listvideo import Playlist

ID_PLAYLIST = "ID-PLAYLIST-YT"

lv = Playlist(ID_PLAYLIST)

channels = lv.channels
for channel in channels:
    if channel.author == 'midudev':
        print(channel)
        break

```

## API de listvideo
 ListVideo proporciona una API y un sistema de caché para reducir el consumo de solicitudes en tiempo real. 

```py
from listvideo import keep_alive_app

keep_alive_app()
```

### Endpoints

### `GET api/v1/videos?list=<ID-PLAYLIST>`

Este endpoint te permite obtener una lista de la información de cada video en la lista de reproducción especificada. Debes proporcionar el ID de la lista de reproducción de YouTube como parámetro list.

### `GET api/v1/channels?list=<ID-PLAYLIST>`

Este endpoint te permite obtener todos los canales encontrados en la lista de reproducción especificada.

### `GET api/v1/channels?list=<ID-PLAYLIST>&id_author=<ID-AUTHOR>`

Este endpoint te permite obtener información sobre un canal específico en la lista de reproducción especificada. Debes proporcionar el ID de la lista de reproducción de YouTube como parámetro list y el ID del autor como parámetro id_author.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "listvideo",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "youtube, playlist, video",
    "author": null,
    "author_email": "Francisco Griman <grihardware@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/d3/a6/4bb2cbe8e9e14f79b94c670c4a0c8081d8f9ab751410165d7772fe6f17e0/listvideo-0.0.1.tar.gz",
    "platform": null,
    "description": "# listvideo\r\n\r\nListVideo es una biblioteca que facilita la interacci\u00f3n con las listas de reproducci\u00f3n de YouTube. Permite acceder a los metadatos de los videos y organizarlos de manera eficiente.\r\n\r\n## Uso\r\n\r\nLa clase `Playlist` permite interactuar con una lista de reproducci\u00f3n de YouTube. Para utilizarla, debes instanciarla con el ID de la lista de reproducci\u00f3n que deseas analizar.\r\n\r\n### Obtener informaci\u00f3n de la lista de reproducci\u00f3n\r\n\r\n```py\r\nfrom listvideo import Playlist\r\n\r\nID_PLAYLIST = \"ID-PLAYLIST-YT\"\r\nlv = Playlist(ID_PLAYLIST)\r\n\r\nauthor = lv.author # Obtiene el creador de la lista de reproducci\u00f3n\r\ntitle  = lv.title # Obtiene el t\u00edtulo de la lista de reproducci\u00f3n\r\n```\r\n\r\n### Acceder a la informaci\u00f3n de cada video\r\n```py\r\nfrom listvideo import Playlist\r\n\r\nID_PLAYLIST = \"ID-PLAYLIST-YT\"\r\nlv = Playlist(ID_PLAYLIST)\r\n\r\nvideos = lv.videos\r\nfor i in range(len(videos)):\r\n    print(f'{i}. {videos[i].title} - {videos[i].author}') # Imprime el t\u00edtulo y el autor de cada video\r\n```\r\n\r\nLa clase `Video` tiene varios atributos que puedes utilizar para obtener informaci\u00f3n detallada sobre cada video:\r\n\r\n```py\r\nclass Video:\r\n    title: str # T\u00edtulo del video\r\n    description: str # Descripci\u00f3n del video\r\n    length: str # Duraci\u00f3n del video\r\n    url: str # URL del video\r\n    thumbnail_url: str # URL de la miniatura del video\r\n    author: str # Autor del video\r\n    id_author: str | None # ID del autor del video (puede ser None)\r\n```\r\n\r\nEl objetivo de ListVideo es permitirte organizar y almacenar canales de YouTube que tengan m\u00e1s de dos videos en la lista de reproducci\u00f3n.\r\n\r\n```py\r\nfrom listvideo import Playlist\r\n\r\nID_PLAYLIST = \"ID-PLAYLIST-YT\"\r\n\r\nlv = Playlist(ID_PLAYLIST)\r\n\r\nchannels = lv.channels\r\nfor channel in channels:\r\n    if channel.author == 'midudev':\r\n        print(channel)\r\n        break\r\n\r\n```\r\n\r\n## API de listvideo\r\n ListVideo proporciona una API y un sistema de cach\u00e9 para reducir el consumo de solicitudes en tiempo real. \r\n\r\n```py\r\nfrom listvideo import keep_alive_app\r\n\r\nkeep_alive_app()\r\n```\r\n\r\n### Endpoints\r\n\r\n### `GET api/v1/videos?list=<ID-PLAYLIST>`\r\n\r\nEste endpoint te permite obtener una lista de la informaci\u00f3n de cada video en la lista de reproducci\u00f3n especificada. Debes proporcionar el ID de la lista de reproducci\u00f3n de YouTube como par\u00e1metro list.\r\n\r\n### `GET api/v1/channels?list=<ID-PLAYLIST>`\r\n\r\nEste endpoint te permite obtener todos los canales encontrados en la lista de reproducci\u00f3n especificada.\r\n\r\n### `GET api/v1/channels?list=<ID-PLAYLIST>&id_author=<ID-AUTHOR>`\r\n\r\nEste endpoint te permite obtener informaci\u00f3n sobre un canal espec\u00edfico en la lista de reproducci\u00f3n especificada. Debes proporcionar el ID de la lista de reproducci\u00f3n de YouTube como par\u00e1metro list y el ID del autor como par\u00e1metro id_author.\r\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Francisco Griman  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "ListVideo es una biblioteca que facilita la interacci\u00f3n con las listas de reproducci\u00f3n de YouTube. Permite acceder a los metadatos de los videos y organizarlos de manera eficiente.",
    "version": "0.0.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/fcoagz/listvideo/issues",
        "Homepage": "https://github.com/fcoagz/listvideo"
    },
    "split_keywords": [
        "youtube",
        " playlist",
        " video"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4cfce3d2477986f28f53fc50373e68abb76906f1712df11ef922b9382908f716",
                "md5": "f0a033d7e26aff9ae11501dd7d6705c2",
                "sha256": "e2a36389e8bc38fd3e3e24fd663fff8f1892b2aac70432ee44992693e9375013"
            },
            "downloads": -1,
            "filename": "listvideo-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f0a033d7e26aff9ae11501dd7d6705c2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 9178,
            "upload_time": "2024-04-13T13:25:55",
            "upload_time_iso_8601": "2024-04-13T13:25:55.623665Z",
            "url": "https://files.pythonhosted.org/packages/4c/fc/e3d2477986f28f53fc50373e68abb76906f1712df11ef922b9382908f716/listvideo-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d3a64bb2cbe8e9e14f79b94c670c4a0c8081d8f9ab751410165d7772fe6f17e0",
                "md5": "602250de0ba8e14c73b97b808d2a025e",
                "sha256": "e6aebfaea9bd5411b20b6b84697747501a1859e93cb7e4ef976ebde324fbd756"
            },
            "downloads": -1,
            "filename": "listvideo-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "602250de0ba8e14c73b97b808d2a025e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 7848,
            "upload_time": "2024-04-13T13:26:00",
            "upload_time_iso_8601": "2024-04-13T13:26:00.046788Z",
            "url": "https://files.pythonhosted.org/packages/d3/a6/4bb2cbe8e9e14f79b94c670c4a0c8081d8f9ab751410165d7772fe6f17e0/listvideo-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-13 13:26:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fcoagz",
    "github_project": "listvideo",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "flask",
            "specs": []
        },
        {
            "name": "flask_cors",
            "specs": []
        },
        {
            "name": "pytube",
            "specs": []
        },
        {
            "name": "cachetools",
            "specs": []
        }
    ],
    "lcname": "listvideo"
}
        
Elapsed time: 0.24551s