Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add other oembed providers #68

Open
michaelhelmick opened this issue Nov 2, 2017 · 2 comments
Open

Add other oembed providers #68

michaelhelmick opened this issue Nov 2, 2017 · 2 comments

Comments

@michaelhelmick
Copy link
Owner

No description provided.

@luthy2
Copy link

luthy2 commented Jan 16, 2018

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

@michaelhelmick
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants