/bash-oembed

Bash oEmbed Consumer

Primary LanguageShellMIT LicenseMIT

Bash oEmbed Consumer

Build Status GitHub license GitHub stars awesomeness

This is a small bash script that tries to determine the correct oEmbed provider depending on the given URL, and then makes a cURL request to their endpoint and returns the response.

Installation

git clone https://github.com/ArtBIT/bash-oembed.git

Usage

./oembed https://youtu.be/dQw4w9WgXcQ

NOTE: You can pipe the result to a JSON processor like jq:

./oembed https://youtu.be/dQw4w9WgXcQ | jq .title

License

MIT