Skip to main content

A library to extract information from YouTube URLs.

Project description

ytu

https://img.shields.io/pypi/v/ytu.svg https://img.shields.io/travis/yaph/ytu.svg

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.

History

0.2.0 (2019-07-27)

  • Add is_youtube function to check if a URL belongs to a recognized YouTube domain.
  • Add type hints to ytu functions and drop Python 3.4 support accordingly.
  • Rename get_param_value to param_value.

0.1.0 (2019-07-27)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ytu, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size ytu-0.2.0-py2.py3-none-any.whl (4.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size ytu-0.2.0.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page