{"id":19736679,"url":"https://github.com/anyesh/youtube","last_synced_at":"2025-09-08T00:42:01.203Z","repository":{"id":30158711,"uuid":"121017056","full_name":"Anyesh/youtube","owner":"Anyesh","description":":mortar_board: A simple and fast Python module to retrieve data from YouTube.","archived":false,"fork":false,"pushed_at":"2022-05-02T08:48:31.000Z","size":91,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-31T06:50:03.123Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anyesh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-10T13:20:23.000Z","updated_at":"2018-02-13T17:44:04.000Z","dependencies_parsed_at":"2022-07-28T01:07:26.225Z","dependency_job_id":null,"html_url":"https://github.com/Anyesh/youtube","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Anyesh/youtube","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anyesh%2Fyoutube","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anyesh%2Fyoutube/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anyesh%2Fyoutube/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anyesh%2Fyoutube/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anyesh","download_url":"https://codeload.github.com/Anyesh/youtube/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anyesh%2Fyoutube/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274117520,"owners_count":25225103,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T01:08:07.500Z","updated_at":"2025-09-08T00:42:01.180Z","avatar_url":"https://github.com/Anyesh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# youtube\n\n\u003cimg title=\"The YouTube Logo\" align=\"right\" width=\"20%\" src=\"logo.png\"\u003e\n\n[![Python](https://img.shields.io/badge/Python-3.6-blue.svg)](https://docs.python.org/3/whatsnew/3.6.html)\n[![Travis CI](https://travis-ci.org/Fallmay/youtube.svg?branch=master)](https://travis-ci.org/Fallmay/youtube)\n\nA simple and fast Python module to retrieve data from YouTube.\n\n  - Does not use third-party dependencies and YouTube Data API.\n  - Uses a pool of threads to execute asynchronously requests. \n  - Can receive data from multiple videos at once.\n\n## Installation\n\nInstall from source:\n\n```\n$ git clone https://github.com/Fallmay/youtube.git\n$ cd youtube\n$ python setup.py install\n```\n\nYou can also use `pip`:\n\n```\n$ pip install --upgrade pip setuptools\n$ pip install https://github.com/Fallmay/youtube/archive/master.tar.gz\n```\n\n## Usage\n\nGet information about a video:\n\n```python\nimport youtube\n\nvideo = youtube.Video('https://www.youtube.com/watch?v=nKIu9yen5nc')\nprint(video.title, video.duration, video.date, sep='\\n')\n# What Most Schools Don't Teach\n# 05:44\n# 2013-02-26\n\nprint(video.description)\n# Learn about a new \"superpower\" that isn't being taught in 90% of US schools ...\n\nprint(video.statistics)\n# {'likes': '115618', 'dislikes': '3549', 'rating': '4.88', 'views': '14134818'}\n\nprint(video.channel)\n# {'title': 'Code.org', 'subscribers': '203K', ...\n\nprint(video.streams['adaptive']['audio'])\n# {'140': {'bitrate': '128056', 'type': 'audio/mp4', ...\n\nprint(video.streams['adaptive']['video'])\n# {'137': {'quality': '1080p', 'bitrate': '4276030', 'fps': '24', ...\n\nprint(video.streams['multiplexed'])\n# {'22': {'quality': 'hd720', 'type': 'video/mp4', ...\n\nif 'English' in video.captions:\n    print(video.captions['English'])\n# {'languageCode': 'en', 'url': ...\n```\n\nSerialize information about your favorite videos to a JSON formatted string:\n\n```python\nimport json\nimport youtube\n\nfavorite = ['nKIu9yen5nc', 'n_KghQP86Sw', 'kccUxGDsMAQ', 'QQmFyybzon0',\n            'U6hkOAnFJxM', 'qDbsiVWA2Ag', '6mbFO0ZLMW8']\n\ndata = youtube.load(favorite, video=True)\nfor _identifier, _data in data.items():\n    video = youtube.Video(identifier=_identifier, data=_data)\n    print(json.dumps(video.__dict__))\n\n# {\"title\": \"What Most Schools Don't Teach\", ...\n# {\"title\": \"Internet - Understanding Technology - by CS50 at Harvard\", ...\n# {\"title\": \"Multimedia - Understanding Technology - by CS50 at Harvard\", ...\n# {\"title\": \"Security - Understanding Technology - by CS50 at Harvard\", ...\n# {\"title\": \"Web Development - Understanding Technology - by CS50 at Harvard\", ...\n# {\"title\": \"Programming - Understanding Technology - by CS50 at Harvard\", ...\n# {\"title\": \"Hardware - Understanding Technology - by CS50 at Harvard\", ...\n```\n\nPlease see [JSON output example](docs/video.json).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanyesh%2Fyoutube","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanyesh%2Fyoutube","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanyesh%2Fyoutube/lists"}