Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 680 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 680 Bytes

##Download a users vines before the shutdown ;_;

You need your userId for this. Not obvious to get it.

Visit your vine.co page in a browser. eg: vine.co/sam.rad

exmaple.js


const VINE_DL = require('./index')
const fs = require('fs')
const path = require('path')

const VINE_USER_ID = '947608250487042048'

// __dirname (where to download)
VINE_DL.downloadTimeline(VINE_USER_ID, __dirname, {maxDownload:Infinity})
.then(final=>{
	fs.writeFileSync(path.join(__dirname, `${VINE_USER_ID}.json`), JSON.stringify(final.rawVineData, null, 4))
	console.log(final);
})