Skip to content

v3.1.11

Compare
Choose a tag to compare
@ndaidong ndaidong released this 05 Jul 06:48
· 28 commits to main since this release
90b5f67
  • Add agent to fetchOptions
  • 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)