Generate responsive, embeddable HTML/JS code from URL of online content
Project description
Generate embeddable HTML or JavaScript code for a online content from its URL in a simple step.
The content can be:
Youtube video
Twitter status
Vimeo video
etc.
Embeddable code-generation be simple like this:
>>> from embed_x import OnlineContent >>> OnlineContent('http://www.youtube.com/embed/_lOT2p_FCvA').get_embed_code() "<div class='embedx-yt'><iframe src='http://www.youtube.com/embed/_lOT2p_FCvA' 'frameborder='0' allowfullscreen></iframe></div>"
Currently, supports
Youtube video
Vimeo video
Twitter: single status
Github gists
Flickr image
Examples of URLs
Valid
http://youtu.be/lOT2pFCvA
www.youtube.com/watch?v=lOT2pFCvA&feature=feedu
http://www.youtube.com/embed/lOT2pFCvA
http://www.youtube.com/v/lOT2pFCvA?version=3&hl=en_US
https://www.youtube.com/watch?v=rTHlyTphWP0&index=6&list=PLjeDyYvG6-40qawYNR4juzvSOg-ezZ2a6
youtube.com/watch?v=lOT2pFCvA
Invalid:
youtu.be/watch?v=lOT2pFCvA [ because Youtube don’t give any url like this ]
Install
from PyPI
pip install embedx
Directly from source
pip install git+https://github.com/kmonsoor/embedX.git
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for embedx-0.0.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33cecb9a2625f6dc4102c352d3af16c6ab5cc3a7ca0b4a853fcaec9908884824 |
|
MD5 | f70f33273f9853e389999ed4c751f77d |
|
BLAKE2b-256 | 3950b3ce31ec388767dfa707d8f10e3fb66bd1971080dfaeac277ef2a19abe07 |