yt2text


Nameyt2text JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttps://github.com/atahanuz/yt2text
SummaryExtract text from a YouTube video in a single command, using OpenAi's Whisper speech recognition model
upload_time2023-11-02 12:48:59
maintainer
docs_urlNone
authorAtahan Uz
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            YT2TEXT

Extract text from a YouTube video in a single command, using OpenAi's Whisper speech recognition model. It doesn't use disk, performs everything in memory.

INSTALL:
pip install yt2text

USAGE:

You'll only interact with the get_text function. It takes a YouTube URL as an argument and returns the text as a string.

import yt2text
result= yt2text.get_text(YOUTUBE_URL)


OPTIONAL ARGUMENTS:
model 
Set Whisper model (tiny,base,small,medium or large). Check here for details:
https://github.com/openai/whisper#available-models-and-languages
Defaults to "base" which should be good enough for most cases.
The first time you use a model, it will be downloaded first.

verbose
Set True to print each step of the process. Defaults to False, it only prints if there is an error.








            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/atahanuz/yt2text",
    "name": "yt2text",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Atahan Uz",
    "author_email": "atahanuz23@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/23/bd/c6bcef5e7aa6a32e98b67bf48cb443034df70398f093e9c3608baf4fe913/yt2text-1.0.1.tar.gz",
    "platform": null,
    "description": "YT2TEXT\n\nExtract text from a YouTube video in a single command, using OpenAi's Whisper speech recognition model. It doesn't use disk, performs everything in memory.\n\nINSTALL:\npip install yt2text\n\nUSAGE:\n\nYou'll only interact with the get_text function. It takes a YouTube URL as an argument and returns the text as a string.\n\nimport yt2text\nresult= yt2text.get_text(YOUTUBE_URL)\n\n\nOPTIONAL ARGUMENTS:\nmodel \nSet Whisper model (tiny,base,small,medium or large). Check here for details:\nhttps://github.com/openai/whisper#available-models-and-languages\nDefaults to \"base\" which should be good enough for most cases.\nThe first time you use a model, it will be downloaded first.\n\nverbose\nSet True to print each step of the process. Defaults to False, it only prints if there is an error.\n\n\n\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Extract text from a YouTube video in a single command, using OpenAi's Whisper speech recognition model",
    "version": "1.0.1",
    "project_urls": {
        "Homepage": "https://github.com/atahanuz/yt2text"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8845e492ac4320cb8d5d020c51136f4173af0f521fb989c36f8460e9c0b7486a",
                "md5": "22e0c14ce72b7dd4a13389649883d803",
                "sha256": "d7edb6abfe1cbf5da144a8674379356b665f2da37ce38f37543cfd91ce187bfa"
            },
            "downloads": -1,
            "filename": "yt2text-1.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "22e0c14ce72b7dd4a13389649883d803",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 1596,
            "upload_time": "2023-11-02T12:48:57",
            "upload_time_iso_8601": "2023-11-02T12:48:57.667082Z",
            "url": "https://files.pythonhosted.org/packages/88/45/e492ac4320cb8d5d020c51136f4173af0f521fb989c36f8460e9c0b7486a/yt2text-1.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23bdc6bcef5e7aa6a32e98b67bf48cb443034df70398f093e9c3608baf4fe913",
                "md5": "4b89ee4e5b2105f96aa4e1c85a5a1c71",
                "sha256": "2d6a53a7de5d82179e3596a9eae25431ff9e75e66aebe8d88faaaf5c920444d8"
            },
            "downloads": -1,
            "filename": "yt2text-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4b89ee4e5b2105f96aa4e1c85a5a1c71",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1623,
            "upload_time": "2023-11-02T12:48:59",
            "upload_time_iso_8601": "2023-11-02T12:48:59.022290Z",
            "url": "https://files.pythonhosted.org/packages/23/bd/c6bcef5e7aa6a32e98b67bf48cb443034df70398f093e9c3608baf4fe913/yt2text-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-02 12:48:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "atahanuz",
    "github_project": "yt2text",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "yt2text"
}
        
Elapsed time: 0.34682s