npm.io
5.58.1 • Published 2d ago

metascraper-media-provider

Licence
MIT
Version
5.58.1
Deps
9
Size
12 kB
Vulns
0
Weekly
0
Stars
2.7K

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.

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.

args

Type: function
Default: ({ url, flags }) => ({ url, flags })

It defines a function that will determine the arguments to be passed to youtube-dl:

const args = ({ flags, url, retryCount }) => {
  flags.addHeader = [`referer:${url}`]
  return { url, flags }
}

License

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

microlink.io · GitHub microlinkhq · X @microlinkhq

Keywords