https://github.com/yaph/ytu
A library to extract information from YouTube URLs.
https://github.com/yaph/ytu
information-extraction python-package uri url youtube
Last synced: about 2 months ago
JSON representation
A library to extract information from YouTube URLs.
- Host: GitHub
- URL: https://github.com/yaph/ytu
- Owner: yaph
- License: mit
- Created: 2019-07-27T02:45:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-27T22:39:37.000Z (almost 7 years ago)
- Last Synced: 2025-02-09T07:04:29.752Z (over 1 year ago)
- Topics: information-extraction, python-package, uri, url, youtube
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
===
ytu
===
.. image:: https://img.shields.io/pypi/v/ytu.svg
:target: https://pypi.python.org/pypi/ytu
.. image:: https://img.shields.io/travis/yaph/ytu.svg
:target: https://travis-ci.org/yaph/ytu
A library to extract information from YouTube URLs. Currently provides the function `video_id` to retrieve the video ID from a YouTube URL.
Usage
-----
::
import ytu
url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
if ytu.is_youtube(url):
print(ytu.video_id(url))
Credits
-------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage