Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Generate embeddable HTML or JavaScript code for a online content from its URL in single step

Project Description


Generate embeddable HTML or JavaScript code for a online content from
its URL in a single step.

The content can be: \* Yotube video \* Twitter status \* Vimeo video \*

Embeddable code-generation be simple like this:


>>> from embed_x import OnlineContent
>>> oc = OnlineContent('')
>>> oc.get_embed_code()
"<div class='embedx-yt'><iframe src='' 'frameborder='0' allowfullscreen></iframe></div>"

Currently, supports

- Youtube video
- Vimeo video
- Twitter : single status

Examples of URLs




-\_lOT2p\_FCvA [ because Youtube don’t give any url
like this ]


from PyPI


pip install embedX

Directly from source


pip install git+



>>> from online_video import OnlineVideo
>>> oc = OnlineVideo('')
>>> oc.get_video_id()

>>> oc.get_embed_code()

"<div class='embed-container'><iframe src='' 'frameborder='0'allowfullscreen></iframe></div>"

>>> oc = OnlineVideo('')
>>> oc.get_embed_code()
"<div class='embed-container'> <iframe src='' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></div>"


- Create test
- Provision Travis-CI for automatic building & testing
- add more content sites
- Github gists
- Facebook status
- Facebook notes
- Scribd docs
- Imgur images


- Seed idea : `A StackOverflow answer`_ by `Mikhail Kashkin`_
- Author : `Khaled Monsoor`_

Please try to contribute by submitting more content-sites with their
different link formats and embed-codes. You can submit pull-requests or
by creating issue.

.. _A StackOverflow answer:
.. _Mikhail Kashkin:
.. _Khaled Monsoor:

.. |License| image::
Release History

Release History

History Node


History Node


History Node


History Node


This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
embedX-0.0.3-py2.py3-none-any.whl (2.2 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Jan 12, 2016
embedX-0.0.3.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Jan 12, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting