metascraper-media-provider
TypeScript icon, indicating that this package has built-in type declarations

5.45.0 • Public • Published

metascraper

metascraper-media-provider: Get specific video provider url (Facebook/Twitter/Vimeo/etc).

See our website for more information.


Install

$ npm install metascraper-media-provider --save

API

metascraper-media-provider([options])

options

cacheDir

Type: string

It specifies cache based on file system to be used by youtube-dl.

getProxy

Type: function

It will be called to determinate if a proxy should be used for resolving the next request URL.

const getProxy = ({ url, retryCount }) => {
  if (retryCount === 0) return false
  return 'http://user:pwd@proxy:8001'
}
getAgent

Type: function

It receives as input the output from .getProxy. The output will be passed to .gotOpts.

gotOpts

Type: object

Any option provided here will passed to got#options.

retry

Type: number
Default: 5

The maximum number of retries allowed to perform.

timeout

Type: number
Default: 30000

The maximum time allowed to wait until considering the request as timed out.

License

metascraper-media-provider © Microlink, released under the MIT License.
Authored and maintained by Microlink with help from contributors.

microlink.io · GitHub microlinkhq · Twitter @microlinkhq

Package Sidebar

Install

npm i metascraper-media-provider

Weekly Downloads

579

Version

5.45.0

License

MIT

Unpacked Size

17.6 kB

Total Files

9

Last publish

Collaborators

  • kikobeats