lassie icon indicating copy to clipboard operation
lassie copied to clipboard

Add other oembed providers

Open michaelhelmick opened this issue 8 years ago • 2 comments

michaelhelmick avatar Nov 02 '17 16:11 michaelhelmick

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

luthy2 avatar Jan 16 '18 21:01 luthy2

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

michaelhelmick avatar Jan 19 '18 15:01 michaelhelmick