{"id":13557708,"url":"https://github.com/kmonsoor/embedX","last_synced_at":"2025-04-03T12:30:58.946Z","repository":{"id":57426183,"uuid":"48960818","full_name":"kmonsoor/embedX","owner":"kmonsoor","description":"Generate embeddable HTML or JavaScript code for a online content from its URL in single step","archived":false,"fork":false,"pushed_at":"2018-09-24T02:46:33.000Z","size":469,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T05:09:54.345Z","etag":null,"topics":["embeds","plugin","python"],"latest_commit_sha":null,"homepage":"http://kmonsoor.github.io/embedX","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kmonsoor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-03T21:08:50.000Z","updated_at":"2018-09-24T02:46:35.000Z","dependencies_parsed_at":"2022-09-11T04:20:50.359Z","dependency_job_id":null,"html_url":"https://github.com/kmonsoor/embedX","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmonsoor%2FembedX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmonsoor%2FembedX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmonsoor%2FembedX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmonsoor%2FembedX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kmonsoor","download_url":"https://codeload.github.com/kmonsoor/embedX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247002185,"owners_count":20867420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embeds","plugin","python"],"created_at":"2024-08-01T12:04:30.119Z","updated_at":"2025-04-03T12:30:58.415Z","avatar_url":"https://github.com/kmonsoor.png","language":"Python","funding_links":[],"categories":["Python","python"],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/license-MIT-blue.svg)](http://kmonsoor.mit-license.org/)\n[![PyPI version](https://badge.fury.io/py/embedX.svg)](https://badge.fury.io/py/embedX)\n[![Code Issues](https://www.quantifiedcode.com/api/v1/project/69f2bf7e3b404e6c90015053e48a1cbf/badge.svg)](https://www.quantifiedcode.com/app/project/69f2bf7e3b404e6c90015053e48a1cbf)\n\n# embedX\n\nGenerate embeddable HTML or JavaScript code for a online content from its URL in a single step.\n\nThe content can be anything like \n\n * Youtube or Vimeo video,\n * Twitter status,\n * Github Gist,\n etc.\n\n\nEmbeddable code-generation be simple like this:\n\n    \u003e\u003e\u003e from embed_x import OnlineContent\n    \u003e\u003e\u003e oc = OnlineContent('http://www.youtube.com/embed/_lOT2p_FCvA')\n    \u003e\u003e\u003e oc.get_embed_code()\n    \"\u003cdiv class='embedx-yt'\u003e\u003ciframe src='http://www.youtube.com/embed/_lOT2p_FCvA' 'frameborder='0' allowfullscreen\u003e\u003c/iframe\u003e\u003c/div\u003e\"\n\n    \n\n### Currently, supports\n\n * Youtube video,\n * Vimeo video,\n * Twitter: single status,\n * Github gist,\n * Flickr image\n\n\n\n### Examples of URLs\n\n####  Valid\n\n *  http://youtu.be/_lOT2p_FCvA\n *  www.youtube.com/watch?v=_lOT2p_FCvA\u0026feature=feedu\n *  http://www.youtube.com/embed/_lOT2p_FCvA\n *  https://www.youtube.com/watch?v=rTHlyTphWP0\u0026index=6\u0026list=PLjeDyYvG6-40qawYNR4juzvSOg-ezZ2a6\n *  youtube.com/watch?v=_lOT2p_FCvA\n *  https://vimeo.com/groups/animation/videos/150618894/\n *  https://vimeo.com/150519302\n *  https://twitter.com/codinghorror/status/686254714938200064\n *   \n\n####  Invalid:\n\n * youtu.be/watch?v=_lOT2p_FCvA  [ because Youtube don't give any url like this ]\n * https://twitter.com/gvanrossum/with_replies\n * \n\n\n\n## Install\n\n### from PyPI\n\n    pip install embedx\n\n### Directly from source\n\n    pip install git+https://github.com/kmonsoor/embedX.git\n\n## Requirements\n    \n    This library don't have any external dependencies other than standard Python installation.\n\n\n## Usage\n\n    \u003e\u003e\u003e from embedx import OnlineContent\n    \u003e\u003e\u003e oc = OnlineContent('http://www.youtube.com/embed/_lOT2p_FCvA')\n    \u003e\u003e\u003e oc.extract_id()\n    '_lOT2p_FCvA'\n\n    \u003e\u003e\u003e oc.get_embed_code()\n    \"\u003cdiv class='embed-container'\u003e\u003ciframe src='http://www.youtube.com/embed/_lOT2p_FCvA' 'frameborder='0'allowfullscreen\u003e\u003c/iframe\u003e\u003c/div\u003e\"\n\n    \u003e\u003e\u003e oc = OnlineContent('https://vimeo.com/groups/animation/videos/150618894/')\n    \u003e\u003e\u003e oc.get_embed_code()\n    \"\u003cdiv class='embed-container'\u003e \u003ciframe src='http://player.vimeo.com/video/150618894' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen\u003e\u003c/iframe\u003e\u003c/div\u003e\"\n\n\n\n## To-do\n\n* Create test cases for automated testing\n* Provision Travis-CI for automatic building \u0026 testing\n* Add support for [conda](http://conda.pydata.org/docs/index.html)-based installation\n* Add more rich-content sites\n\n  - [x] Github gists\n  - [ ] Facebook status\n  - [ ] Facebook notes\n  - [ ] Scribd docs\n  - [ ] Imgur images\n\n\n## Contributors\n\n * Seed idea :  [A StackOverflow answer](http://stackoverflow.com/a/7936523) by [Mikhail Kashkin](http://stackoverflow.com/users/85739/mikhail-kashkin)\n * Author : [Khaled Monsoor](http://github.com/kmonsoor)\n * \n\nPlease try to contribute by submitting more content-sites with their different link formats and embed-codes. You can submit through pull-requests or by creating issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmonsoor%2FembedX","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkmonsoor%2FembedX","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmonsoor%2FembedX/lists"}