npm.io
1.1.1 • Published 4 years ago

vsco-dl

Licence
MIT
Version
1.1.1
Deps
3
Size
7 kB
Vulns
9
Weekly
0

VSCO Downloader

An npm package for downloading media from VSCO gallery

Installation

npm install vsco-dl

Requires

  • request
  • cheerio
  • adm-zip

Usage

Adding To Project
const vscoSession = require('vsco-dl')();
const username = "david"
const limit = 1000 //how many photos/videos it will download
const filePath = "./yeet/lmao" //optional (default: "./temp/[randomID]")
vscoSession.getMedia(username, limit)
	.catch(err => console.log(err))
	.then(media => media.map(e => "https://" + e)) //vsco urls are stored without the "https://", hence this
	.then(mediaURLS => vscoSession.downloadAll(mediaURLS, filePath))
const username = "david"
const limit = 1000 //how many photos/videos it will download
const filePath = "./yeet/lmao" //optional (default: "./temp/[randomID]")
vscoSession.getMedia(username, limit)
	.catch(err => console.log(err))
	.then(media => media.map(e => "https://" + e)) //vsco urls are stored without the "https://", hence this
	.then(mediaURLS => vscoSession.downloadAndZipAll(mediaURLS, filePath))

Keywords