Skip to content

A Python library that implements an OEmbed consumer to use with OEmbed providers. Fork of Google Code project at: http://code.google.com/p/python-oembed/

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
COPYING
Notifications You must be signed in to change notification settings

dokterbob/python-oembed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-oembed

Python library that implements an OEmbed consumer to use with OEmbed providers. This is a fork of the Google Code project. For more reference, please refere to the original project's webpage.

The main additions in this fork are:

  • Updated OEmbed provider rules.
  • Rudimentary but working auto-discovery of endpoint URL's

Usage:

import oembed

consumer = oembed.OEmbedConsumer()
endpoint = oembed.OEmbedEndpoint('http://www.flickr.com/services/oembed', \
                                 ['http://*.flickr.com/*'])
consumer.addEndpoint(endpoint)

response = consumer.embed('http://www.flickr.com/photos/wizardbt/2584979382/')

print response['url']

import pprint
pprint.pprint(response.getData())

About

A Python library that implements an OEmbed consumer to use with OEmbed providers. Fork of Google Code project at: http://code.google.com/p/python-oembed/

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages