Releases: extractus/oembed-extractor
Releases · extractus/oembed-extractor
v4.0.5
v4.0.4
v4.0.3
v4.0.2
v4.0.1
v4.0.0
v3.2.1
v3.2.0
v3.1.11
- Add
agent
tofetchOptions
- Sync provider list
- Update dependencies
Example oembed extraction via proxy server with agent
:
import { extract } from '@extractus/oembed-extractor'
import { HttpsProxyAgent } from 'https-proxy-agent'
const proxy = 'http://abc:RaNdoMpasswORd_country-France@proxy.packetstream.io:31113'
const url = 'https://codepen.io/ndaidong/pen/LYmLKBw'
const oembed = await extract(url, null, {
agent: new HttpsProxyAgent(proxy),
})
console.log('Run oembed-extractor with proxy:', proxy)
console.log(oembed)