Skip to main content

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

Invalid:

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

embedx-0.0.4-py2.py3-none-any.whl (7.4 kB view hashes)

Uploaded Python 2 Python 3

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