Skip to content

v6.2.4

Compare
Choose a tag to compare
@ndaidong ndaidong released this 05 Jul 06:19
· 52 commits to main since this release
93c7dcb
  • Update dependencies
  • Add agent to fetchOptions for better proxy support

Example feed extraction via proxy server with agent

import { extract } from '@extractus/feed-extractor'

import { HttpsProxyAgent } from 'https-proxy-agent'

const proxy = 'http://abc:[email protected]:31113'

const url = 'https://news.google.com/rss'

const feed = await extract(url, {}, {
  agent: new HttpsProxyAgent(proxy),
})
console.log('Run feed-extractor with proxy:', proxy)
console.log(feed)