All Projects → r8 → elixir-oembed

r8 / elixir-oembed

Licence: MIT license
oEmbed consumer library for Elixir

Programming Languages

elixir
2628 projects

Labels

Projects that are alternatives of or similar to elixir-oembed

furlex
A structured data extraction tool written in Elixir
Stars: ✭ 42 (+13.51%)
Mutual labels:  oembed
go-oembed
Golang package for parsing Oembed data from known providers by URL
Stars: ✭ 22 (-40.54%)
Mutual labels:  oembed
Embed
Get info from any web service or page
Stars: ✭ 1,808 (+4786.49%)
Mutual labels:  oembed
transformer-oembed
@remark-embedder transformer for oEmbed supported links
Stars: ✭ 25 (-32.43%)
Mutual labels:  oembed
oembed
PHP OEmbed wrapper for well-known video platforms and services
Stars: ✭ 26 (-29.73%)
Mutual labels:  oembed
oembetter
A modern oembed client. Allows you to register filters to improve or supply oembed support for sites that don't normally have it. You can also supply a whitelist of services you trust to prevent XSS attacks.
Stars: ✭ 50 (+35.14%)
Mutual labels:  oembed
oembed
A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.
Stars: ✭ 34 (-8.11%)
Mutual labels:  oembed
disable-embeds
Don't like the enhanced embeds in WordPress 4.4? Easily disable the feature using this plugin.
Stars: ✭ 29 (-21.62%)
Mutual labels:  oembed

OEmbed

CI Hex.pm Hex.pm

oEmbed consumer library for Elixir applications.

oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.

-- See oembed.com for more info about the protocol.

This library supports any discoverable oEmbed endpoint and some other services via custom adapters. Among them:

  • YouTube
  • Instagram
  • Pinterest
  • Vimeo

Installation

Add oembed to your list of dependencies in mix.exs:

def deps do
  [{:oembed, "~> 0.4.1"}]
end

Usage

{:ok, result} = OEmbed.for("https://www.youtube.com/watch?v=dQw4w9WgXcQ")

Custom providers

You can implement modules that support provider behaviour and add them to the provider list from your app config

config :oembed, :providers, [MyApp.OEmbed.SomeProvider, MyApp.OEmbed.SomeOtherProvider]
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].