metascraper-media-provider
v5.45.25
Published
Get video property from HTML markup
Downloads
2,625
Maintainers
Readme
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 · X @microlinkhq