Skip to main content

YouTube video iframe generator

Project description

YT iframe Generator

yt_iframe is a python module which can convert a youtube video link into an embeddable iframe. In order to use this module, install it through your terminal.

foo@bar:~$ pip install yt-iframe

# Import statement
from yt_iframe import yt

Using the module

yt.video()

The video() function takes the youtube video link as a string argument. It returns the iframe as a string.


url = 'https://www.youtube.com/watch?v=UzIQOQGKeyI'
iframe = yt.video(url)

yt.channel()

The channel() function takes a youtube channel link as a string argument. It returns a list of iframe strings.

url = 'https://www.youtube.com/user/ouramazingspace'
iframelist = yt.channel(url)

Project details


Download files

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

Source Distribution

yt_iframe-0.5.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file yt_iframe-0.5.tar.gz.

File metadata

  • Download URL: yt_iframe-0.5.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2

File hashes

Hashes for yt_iframe-0.5.tar.gz
Algorithm Hash digest
SHA256 bb0f8f4c4beb6cd3225661ebae7164e68c3eb2fd389000a2325fa605c2dae87a
MD5 07b2b129ea763974fd377969159ee1d9
BLAKE2b-256 ce8dfc20473af5a04c8b1c3334a28bc45b7bd8d0d4115b718d1216bfefcc3962

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page