Python oEmbed
Author: Ariel Barmat
Introduction
This library provides a pure python OEmbed consumer to get resources from OEmbed providers.
Based on reference from http://oembed.com/
oEmbed is a format for allowing an embedded representation of a URL on
third party sites. The simple API allows a website to display embedded content
(such as photos or videos) when a user posts a link to that resource, without
having to parse the resource directly.
OEmbed format authors:
* Cal Henderson (cal at iamcal.com)
* Mike Malone (mike at pownce.com)
* Leah Culver (leah at pownce.com)
* Richard Crowley (r at rcrowley.org)
Installing
$ pip install python-oembed
Code
Get the latest source code from GitHub
https://github.com/abarmat/python-oembed
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001983s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.114265s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.002739s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001937s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.002247s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003922s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.002156s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003510s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.023809s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.002615s ]
UPDATE `jrk_articles` SET `hits` = 1 WHERE `id` = 39035 [ RunTime:0.001286s ]