1.0.5 • Published 4 years ago

webpage-resource-downloader v1.0.5

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

Web页面资源下载

使用 npm install webpage-resource-downloader 安装.

import { getUrls, downloadResources } from "webpage-resource-downloader"

getUrls("https://hot.cnbeta.com/articles/movie/953697.htm")
    .then(resources => resources.filter(res => res.type === "img").map(res => res.url))
    .then(urls => downloadResources(urls, "out", true))
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago