v6.2.4
- Update dependencies
- Add
agent
tofetchOptions
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)