youtube-search2


Nameyoutube-search2 JSON
Version 2.1.6 PyPI version JSON
download
home_page
Summarya youtube_search fork with additional features and patches.
upload_time2024-03-17 14:27:00
maintainer
docs_urlNone
author
requires_python>=3.8
licenseThis is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. 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 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. For more information, please refer to <http://unlicense.org/>
keywords yt ytsearch youtube_search youtube_search2 youtube-search
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

<div class="center">
  <img src="https://i.ibb.co/f9f3tMM/image.png">
  <p>ytsearch2 is a <a href="https://github.com/joetats/youtube_search">youtube-search</a> fork. The main focus is adding new features and patches.</p>
</div>


![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)

![GitHub Release](https://img.shields.io/github/v/release/xnykram/youtube_search2?&style=flat-square)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/xnykram/youtube_search2/pytest.yml?label=tests&style=flat-square)


## Example usage

### Using URL

``` Python
from youtube_search2 import YoutubeSearch

search_engine = YTSearch()
video_info = search_engine.search_by_url("https://www.youtube.com/watch?v=jNQXAC9IVRw")

output: {'id': 'jNQXAC9IVRw', 'title': 'Me at the zoo', 'thumbnail': 'https://i.ytimg.com/vi/jNQXAC9IVRw/maxresdefault.jpg', 'duration': '19063'}

```

### Using keyword

``` Python
from youtube_search2 import YoutubeSearch

search_engine = YTSearch()
video_info = search_engine.search_by_term("Me at the zoo", max_results=1)

output: [{'id': 'jNQXAC9IVRw', 'thumbnails': ['https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg?sqp=-oaymwE9COADEI4CSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Ab4CgALwAYoCDAgAEAEYVCBYKGUwDw==&rs=AOn4CLC4lp5lwDTP5b30m6scq6a7lKyA8Q'], 'title': 'Me at the zoo', 'long_desc': None, 'channel': 'jawed', 'duration': '0:19', 'views': '310\xa0243\xa0516 views', 'publish_time': '18 years ago', 'url_suffix': '/watch?v=jNQXAC9IVRw&pp=ygUNTWUgYXQgdGhlIHpvbw%3D%3D'}]

```

### Plans

- scrap more data like sub count for method `search_by_url`.

Please report any suggestions and issues [here](https://github.com/xNykram/youtube_search2/issues).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "youtube-search2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Patryk Ladocha <patrykladocha76@gmail.com>",
    "keywords": "yt,ytsearch,youtube_search,youtube_search2,youtube-search",
    "author": "",
    "author_email": "Joe Tatusko <tatuskojc@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/b3/6e/ce8e231dbaae6e0eac5c6786aefd97f9925064e7fd57d619ec1edf875826/youtube_search2-2.1.6.tar.gz",
    "platform": null,
    "description": "\n\n<div class=\"center\">\n  <img src=\"https://i.ibb.co/f9f3tMM/image.png\">\n  <p>ytsearch2 is a <a href=\"https://github.com/joetats/youtube_search\">youtube-search</a> fork. The main focus is adding new features and patches.</p>\n</div>\n\n\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54)\n\n![GitHub Release](https://img.shields.io/github/v/release/xnykram/youtube_search2?&style=flat-square)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/xnykram/youtube_search2/pytest.yml?label=tests&style=flat-square)\n\n\n## Example usage\n\n### Using URL\n\n``` Python\nfrom youtube_search2 import YoutubeSearch\n\nsearch_engine = YTSearch()\nvideo_info = search_engine.search_by_url(\"https://www.youtube.com/watch?v=jNQXAC9IVRw\")\n\noutput: {'id': 'jNQXAC9IVRw', 'title': 'Me at the zoo', 'thumbnail': 'https://i.ytimg.com/vi/jNQXAC9IVRw/maxresdefault.jpg', 'duration': '19063'}\n\n```\n\n### Using keyword\n\n``` Python\nfrom youtube_search2 import YoutubeSearch\n\nsearch_engine = YTSearch()\nvideo_info = search_engine.search_by_term(\"Me at the zoo\", max_results=1)\n\noutput: [{'id': 'jNQXAC9IVRw', 'thumbnails': ['https://i.ytimg.com/vi/jNQXAC9IVRw/hqdefault.jpg?sqp=-oaymwE9COADEI4CSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Ab4CgALwAYoCDAgAEAEYVCBYKGUwDw==&rs=AOn4CLC4lp5lwDTP5b30m6scq6a7lKyA8Q'], 'title': 'Me at the zoo', 'long_desc': None, 'channel': 'jawed', 'duration': '0:19', 'views': '310\\xa0243\\xa0516 views', 'publish_time': '18 years ago', 'url_suffix': '/watch?v=jNQXAC9IVRw&pp=ygUNTWUgYXQgdGhlIHpvbw%3D%3D'}]\n\n```\n\n### Plans\n\n- scrap more data like sub count for method `search_by_url`.\n\nPlease report any suggestions and issues [here](https://github.com/xNykram/youtube_search2/issues).\n",
    "bugtrack_url": null,
    "license": "This is free and unencumbered software released into the public domain.  Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.  In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.  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 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.  For more information, please refer to <http://unlicense.org/> ",
    "summary": "a youtube_search fork with additional features and patches.",
    "version": "2.1.6",
    "project_urls": {
        "Homepage": "https://github.com/xNykram/youtube_search2",
        "Issues": "https://github.com/xNykram/youtube_search2/issues"
    },
    "split_keywords": [
        "yt",
        "ytsearch",
        "youtube_search",
        "youtube_search2",
        "youtube-search"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d70d7b3d472547b91cfa38ae3095977022a1a513abffc88fd28580e349abd63",
                "md5": "7cda00d9c032923b1184cbb0e762b621",
                "sha256": "46ce4d703da791f7e47a586ccc0817a8effdfe97e42ce5247b6a001de789119e"
            },
            "downloads": -1,
            "filename": "youtube_search2-2.1.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7cda00d9c032923b1184cbb0e762b621",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 5424,
            "upload_time": "2024-03-17T14:26:58",
            "upload_time_iso_8601": "2024-03-17T14:26:58.883644Z",
            "url": "https://files.pythonhosted.org/packages/1d/70/d7b3d472547b91cfa38ae3095977022a1a513abffc88fd28580e349abd63/youtube_search2-2.1.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b36ece8e231dbaae6e0eac5c6786aefd97f9925064e7fd57d619ec1edf875826",
                "md5": "8cb554fb60b5b3d17128ab15ea027d83",
                "sha256": "669d9ce6bdc465ff1accffbef5bf70fafcac1a802edde84b1bfb9e98cd1e231d"
            },
            "downloads": -1,
            "filename": "youtube_search2-2.1.6.tar.gz",
            "has_sig": false,
            "md5_digest": "8cb554fb60b5b3d17128ab15ea027d83",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5076,
            "upload_time": "2024-03-17T14:27:00",
            "upload_time_iso_8601": "2024-03-17T14:27:00.569609Z",
            "url": "https://files.pythonhosted.org/packages/b3/6e/ce8e231dbaae6e0eac5c6786aefd97f9925064e7fd57d619ec1edf875826/youtube_search2-2.1.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-17 14:27:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "xNykram",
    "github_project": "youtube_search2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "youtube-search2"
}
        
Elapsed time: 0.22371s