lassie
lassie copied to clipboard
Add other oembed providers
it appears that oembed resources are discoverable by doing something like
oembed = soup.find_all('link', rel=['alt', 'alternate', 'alternative'], type=['application/json+oembed', 'application/xml+oembed'])
oembed_json = requests.get(oembed[0].get('href'))
#returns oembed json or xml
this might be a good place to start
Hm, I was unaware of that. I have implemented youtube oembed in this pull request if you want to take a stab at adding any others!
https://github.com/michaelhelmick/lassie/pull/65/files