Skip to content

Commit

Permalink
Merge pull request #180 from extractus/4.0.1
Browse files Browse the repository at this point in the history
4.0.1
  • Loading branch information
ndaidong authored Aug 16, 2023
2 parents c5acbfa + fe19728 commit 0a18060
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 32 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ yarn add @extractus/oembed-extractor
// es6 module
import { extract } from '@extractus/oembed-extractor'

// CommonJS
const { extract } = require('@extractus/oembed-extractor')

// or specify exactly path to CommonJS variant
const { extract } = require('@extractus/oembed-extractor/dist/cjs/oembed-extractor.js')

const result = await extract('https://www.youtube.com/watch?v=x2bqscVkGxk')
console.log(result)
```
Expand All @@ -50,9 +44,6 @@ import { extract } from 'https://esm.sh/@extractus/oembed-extractor'

// deno > 1.28
import { extract } from 'npm:@extractus/oembed-extractor'

const result = await extract('https://www.youtube.com/watch?v=x2bqscVkGxk')
console.log(result)
```

### Browser
Expand Down Expand Up @@ -283,4 +274,15 @@ npm run eval {URL_TO_PARSE_OEMBED}
## License
The MIT License (MIT)


## Support the project

If you find value from this open source project, you can support in the following ways:

- Give it a star ⭐
- Buy me a coffee: https://paypal.me/ndaidong 🍵
- Subscribe [oEmbed Parser service](https://rapidapi.com/pwshub-pwshub-default/api/oembed-parser/) on RapidAPI 😉

Thank you.

---
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.0.0",
"version": "4.0.1",
"name": "@extractus/oembed-extractor",
"description": "Get oEmbed data from given URL.",
"homepage": "https://github.com/extractus/oembed-extractor",
Expand Down Expand Up @@ -33,10 +33,10 @@
"cross-fetch": "^4.0.0"
},
"devDependencies": {
"eslint": "^8.44.0",
"eslint": "^8.47.0",
"https-proxy-agent": "^7.0.1",
"jest": "^29.6.1",
"nock": "^13.3.1"
"jest": "^29.6.2",
"nock": "^13.3.2"
},
"keywords": [
"oembed",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/providers.latest.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// provider data, synchronized at 2023-07-12T01:33:32.812Z
// provider data, synchronized at 2023-08-16T03:16:17.352Z

/* eslint-disable */

Expand Down
97 changes: 79 additions & 18 deletions src/utils/providers.prev.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// provider data, synchronized at 2023-07-05T06:35:01.771Z
// provider data, synchronized at 2023-07-12T01:33:32.812Z

/* eslint-disable */

Expand Down Expand Up @@ -35,6 +35,7 @@ export const providers = [
},
{
"s": [
"vod\\.afreecatv\\.com/player/",
"v\\.afree\\.ca/ST/",
"vod\\.afreecatv\\.com/ST/",
"vod\\.afreecatv\\.com/PLAYER/STATION/",
Expand Down Expand Up @@ -100,6 +101,23 @@ export const providers = [
],
"e": "app.archivos.digital/oembed/"
},
{
"s": [
"studio\\.assemblrworld\\.com/*",
"assemblr\\.world/*",
"app-edu\\.assemblrworld\\.com/*",
"staging\\.d1o2otincy91d\\.amplifyapp\\.com/*",
"editor\\.assemblrworld\\.com/*"
],
"e": "studio.assemblrworld.com/api/oembed"
},
{
"s": [
"audio\\.com/*",
"www\\.audio\\.com/*"
],
"e": "api.audio.com/oembed"
},
{
"s": [
"audioboom\\.com/channels/*",
Expand Down Expand Up @@ -213,6 +231,12 @@ export const providers = [
],
"e": "cacoo.com/oembed.json"
},
{
"s": [
"www\\.canva\\.com/design/*/view"
],
"e": "www.canva.com/_oembed"
},
{
"s": [
"minesweeper\\.today/*"
Expand Down Expand Up @@ -396,9 +420,7 @@ export const providers = [
"*\\.deviantart\\.com/*#/d*",
"fav\\.me/*",
"sta\\.sh/*",
"*\\.deviantart\\.com/*/art/*",
"sta\\.sh/*\",",
"*\\.deviantart\\.com/*#/d*\""
"*\\.deviantart\\.com/*/art/*"
],
"e": "backend.deviantart.com/oembed"
},
Expand All @@ -420,8 +442,8 @@ export const providers = [
},
{
"s": [
"docswell\\.com/*/*",
"www\\.docswell\\.com/*/*"
"docswell\\.com/s/*/*",
"www\\.docswell\\.com/s/*/*"
],
"e": "www.docswell.com/service/oembed"
},
Expand Down Expand Up @@ -463,12 +485,6 @@ export const providers = [
],
"e": "embedery.com/api/oembed"
},
{
"s": [
"music\\.enystre\\.com/lyrics/*"
],
"e": "music.enystre.com/oembed"
},
{
"s": [
"ethfiddle\\.com/*"
Expand Down Expand Up @@ -516,21 +532,21 @@ export const providers = [
"www\\.facebook\\.com/questions/*",
"www\\.facebook\\.com/notes/*/*/*"
],
"e": "graph.facebook.com/v10.0/oembed_post"
"e": "graph.facebook.com/v16.0/oembed_post"
},
{
"s": [
"www\\.facebook\\.com/*/videos/*",
"www\\.facebook\\.com/video\\.php?id=*",
"www\\.facebook\\.com/video\\.php?v=*"
],
"e": "graph.facebook.com/v10.0/oembed_video"
"e": "graph.facebook.com/v16.0/oembed_video"
},
{
"s": [
"www\\.facebook\\.com/*"
],
"e": "graph.facebook.com/v10.0/oembed_page"
"e": "graph.facebook.com/v16.0/oembed_page"
},
{
"s": [
Expand Down Expand Up @@ -688,6 +704,13 @@ export const providers = [
],
"e": "api.luminery.com/oembed"
},
{
"s": [
"www\\.gumlet\\.com/watch/*",
"play\\.gumlet\\.io/embed/*"
],
"e": "api.gumlet.com/v1/oembed"
},
{
"s": [
"gyazo\\.com/*"
Expand Down Expand Up @@ -835,7 +858,7 @@ export const providers = [
"instagram\\.com/reel/*",
"instagr\\.am/reel/*"
],
"e": "graph.facebook.com/v10.0/instagram_oembed"
"e": "graph.facebook.com/v16.0/instagram_oembed"
},
{
"s": [
Expand All @@ -849,6 +872,12 @@ export const providers = [
],
"e": "issuu.com/oembed"
},
{
"s": [
"play\\.itemis\\.io/*"
],
"e": "create.storage.api.itemis.io/api/embed"
},
{
"s": [
"jovian\\.ml/*",
Expand Down Expand Up @@ -1202,6 +1231,12 @@ export const providers = [
],
"e": "orbitvu.co/service/oembed"
},
{
"s": [
"origits\\.com/v/*"
],
"e": "origits.net/oembed"
},
{
"s": [
"outplayed\\.tv/media/*"
Expand Down Expand Up @@ -1248,6 +1283,13 @@ export const providers = [
],
"e": "api.picturelfy.com/service/oembed/"
},
{
"s": [
"piggy\\.to/@*/*",
"piggy\\.to/view/*"
],
"e": "piggy.to/oembed"
},
{
"s": [
"*\\.builder\\.pikasso\\.xyz/embed/*"
Expand Down Expand Up @@ -1681,9 +1723,11 @@ export const providers = [
},
{
"s": [
"www\\.tickcounter\\.com/widget/*",
"www\\.tickcounter\\.com/countdown/*",
"www\\.tickcounter\\.com/countup/*",
"www\\.tickcounter\\.com/ticker/*",
"www\\.tickcounter\\.com/clock/*",
"www\\.tickcounter\\.com/worldclock/*"
],
"e": "www.tickcounter.com/oembed"
Expand All @@ -1695,6 +1739,15 @@ export const providers = [
],
"e": "www.tiktok.com/oembed"
},
{
"s": [
"tonicaudio\\.com/take/*",
"tonicaudio\\.com/song/*",
"tnic\\.io/song/*",
"tnic\\.io/take/*"
],
"e": "tonicaudio.com/oembed"
},
{
"s": [
"www\\.toornament\\.com/tournaments/*/information",
Expand All @@ -1718,9 +1771,11 @@ export const providers = [
},
{
"s": [
"trinitymedia\\.ai/player/*"
"trinitymedia\\.ai/player/*",
"trinitymedia\\.ai/player/*/*",
"trinitymedia\\.ai/player/*/*/*"
],
"e": "trinitymedia.ai/player/trinity-oembed"
"e": "trinitymedia.ai/services/oembed"
},
{
"s": [
Expand Down Expand Up @@ -1962,6 +2017,12 @@ export const providers = [
],
"e": "www.youtube.com/oembed"
},
{
"s": [
"www\\.yumpu\\.com/*/document/view/*/*"
],
"e": "www.yumpu.com/services/oembed"
},
{
"s": [
"app\\.zeplin\\.io/project/*/screen/*",
Expand Down

0 comments on commit 0a18060

Please sign in to comment.