从在线内容的url生成响应的、可嵌入的html/js代码
embedX的Python项目详细描述
[![许可证](https://img.shields.io/badge/license mit blue.svg)(http://kmonsoor.mit license.org/)
[![PYPI版本](https://badge.fury.io/py/embedx.svg)(https://badge.fury.io/py/embedx)
[![代码问题](https://www.quantifiedcode.com/api/v1/project/69f2bf7e3b404e6c90015053e48a1cbf/badge.svg)(https://www.quantifiedcode.com/app/project/69f2bf7e3b404e6c90015053e48a1cbf)
embedx
步骤。
oc=onlinecontent('http://www.youtube.com/embed/\u lot2p_fcva')
>;>;oc.get_embed_code()
"<;div class='embedx-yt'>;<;iframe src='http://www.youtube.com/embed/\u lot2p_fcva'"frameborder='0'allowfullscreen>;<;/iframe>;<;/div>;
*YouTube视频,
*Vimeo视频,
*Twitter:单一状态,
*GitHub Gist,
*Flickr图片
<
<<<<
<<
<<<
<<<
<<
<
<<<
*http://youtu.be/\u lot2p\u fcva
*www.youtube.com/watch?v=_lot2p_fcva&;feature=feedu
*http://www.youtube.com/embed/_lot2p_fcva
*https://www.youtube.com/watch?v=rthlytpHWP0&index=6&list=pljedyyvg6-40qawynr4juzvsog-ezz2a6
*youtube.com/watch?v=_lot2p_fcva
*https://vimeo.com/groups/animation/videos/150618894/
*https://vimeo.com/150519302
*https://twitter.com/codinghorror/status/68625471493820064
*
v=\u lot2p _fcva[因为YouTube没有提供这样的网址]
*https://twitter.com/gvanrossum/with _回复
*
pip install embedx
安装git+https://github.com/kmonsoor/embedx.git
\oc=onlinecontent('http://www.youtube.com/embed/\u lot2p_fcva')
>;>;oc.extract_id()
'\u lot2p_fcva'
>;>;oc.get_embed_code()
"<;div class="embed-container">;<;iframe src='http://www.youtube.com/embed//u lot2p_fcva''frameborder='0'allowfullscreen>;'lt;/iframe>;'lt;/div>;"
>;>;oc=onlinecontent('https://vimeo.com/groups/animation/videos/150618894/')
>;'oc.get_embed_code()
"<;div class='embed-container'>;<;iframe src='http://player.vimeo.com/video/150618894'frameborder='0'webkitallowfullscreen mozallowfullscreen allowfullscreen>;<;/iframe>;"
用于自动建筑&;测试
*添加对[conda]的支持(http://conda.pydata.org/docs/index.html)-基于安装
*添加更丰富的内容站点
-[x]github gists
-[]facebook status
-[]facebook notes
-[]scribd docs
-[]imgur images
##贡献者
*种子想法:[a stackoverflow answer](http://stackoverflow.com/a/7936523)作者:[mikhail kashkin](http://stackoverflow.com/users/85739/mikhail kashkin)
*作者:[khalid monsoor](http://github.com/kmonsoor)
*
具有不同链接格式和嵌入代码的内容网站。您可以通过拉取请求或创建问题提交。
[![PYPI版本](https://badge.fury.io/py/embedx.svg)(https://badge.fury.io/py/embedx)
[![代码问题](https://www.quantifiedcode.com/api/v1/project/69f2bf7e3b404e6c90015053e48a1cbf/badge.svg)(https://www.quantifiedcode.com/app/project/69f2bf7e3b404e6c90015053e48a1cbf)
embedx
步骤。
oc=onlinecontent('http://www.youtube.com/embed/\u lot2p_fcva')
>;>;oc.get_embed_code()
"<;div class='embedx-yt'>;<;iframe src='http://www.youtube.com/embed/\u lot2p_fcva'"frameborder='0'allowfullscreen>;<;/iframe>;<;/div>;
*YouTube视频,
*Vimeo视频,
*Twitter:单一状态,
*GitHub Gist,
*Flickr图片
<
<<<<
<<
<<<
<<<
<<
<
<<<
*http://youtu.be/\u lot2p\u fcva
*www.youtube.com/watch?v=_lot2p_fcva&;feature=feedu
*http://www.youtube.com/embed/_lot2p_fcva
*https://www.youtube.com/watch?v=rthlytpHWP0&index=6&list=pljedyyvg6-40qawynr4juzvsog-ezz2a6
*youtube.com/watch?v=_lot2p_fcva
*https://vimeo.com/groups/animation/videos/150618894/
*https://vimeo.com/150519302
*https://twitter.com/codinghorror/status/68625471493820064
*
v=\u lot2p _fcva[因为YouTube没有提供这样的网址]
*https://twitter.com/gvanrossum/with _回复
*
pip install embedx
安装git+https://github.com/kmonsoor/embedx.git
\oc=onlinecontent('http://www.youtube.com/embed/\u lot2p_fcva')
>;>;oc.extract_id()
'\u lot2p_fcva'
>;>;oc.get_embed_code()
"<;div class="embed-container">;<;iframe src='http://www.youtube.com/embed//u lot2p_fcva''frameborder='0'allowfullscreen>;'lt;/iframe>;'lt;/div>;"
>;>;oc=onlinecontent('https://vimeo.com/groups/animation/videos/150618894/')
>;'oc.get_embed_code()
"<;div class='embed-container'>;<;iframe src='http://player.vimeo.com/video/150618894'frameborder='0'webkitallowfullscreen mozallowfullscreen allowfullscreen>;<;/iframe>;"
用于自动建筑&;测试
*添加对[conda]的支持(http://conda.pydata.org/docs/index.html)-基于安装
*添加更丰富的内容站点
-[x]github gists
-[]facebook status
-[]facebook notes
-[]scribd docs
-[]imgur images
##贡献者
*种子想法:[a stackoverflow answer](http://stackoverflow.com/a/7936523)作者:[mikhail kashkin](http://stackoverflow.com/users/85739/mikhail kashkin)
*作者:[khalid monsoor](http://github.com/kmonsoor)
*
具有不同链接格式和嵌入代码的内容网站。您可以通过拉取请求或创建问题提交。