Skip to content

Instantly share code, notes, and snippets.

View jskopek's full-sized avatar
🇨🇦
Canadian

Jean-Marc Skopek jskopek

🇨🇦
Canadian
View GitHub Profile
import oembed
content = "http://www.youtube.com/watch?v=c9YrfHVB4ic"
consumer = oembed.OEmbedConsumer()
youtube = oembed.OEmbedEndpoint('http://www.youtube.com/oembed', ['http://*youtube.com*'])
vimeo = oembed.OEmbedEndpoint('http://vimeo.com/api/oembed.json', ['http://*vimeo.com*'])
consumer.addEndpoint(youtube)
consumer.addEndpoint(vimeo)