https://github.com/artbit/bash-oembed
Bash oEmbed Consumer
https://github.com/artbit/bash-oembed
bash curl oembed
Last synced: 3 months ago
JSON representation
Bash oEmbed Consumer
- Host: GitHub
- URL: https://github.com/artbit/bash-oembed
- Owner: ArtBIT
- License: mit
- Created: 2018-03-21T22:37:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-29T18:27:53.000Z (almost 4 years ago)
- Last Synced: 2025-03-08T21:39:08.144Z (3 months ago)
- Topics: bash, curl, oembed
- Language: Shell
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash oEmbed Consumer
[](https://travis-ci.org/ArtBIT/bash-oembed) [](https://github.com/ArtBIT/bash-oembed) [](https://github.com/ArtBIT/bash-oembed) [](https://github.com/ArtBIT/bash-oembed)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](https://github.com/stedolan/jq):
```
./oembed https://youtu.be/dQw4w9WgXcQ | jq .title```
# License
[MIT](LICENSE.md)