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
Release history Release notifications | RSS feed
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.6.tar.gz
(2.1 kB
view hashes)