Downloads and saves Instagram photos and videos to your current working directory.
Requirements: Node 4+
$ npm install -g instagram-save
Run instagram-save
by passing one or more URLs or media IDs as arguments,
like so:
$ instagram-save dU4fHDw-Ho
$ instagram-save https://www.instagram.com/p/dU4fHDw-Ho/
$ instagram-save dU4fHDw-Ho 6IbLiMQ-LE
Or read URLs from a file (e.g. urls.txt
):
https://www.instagram.com/p/dU4fHDw-Ho/
https://www.instagram.com/p/6IbLiMQ-LE/
And run:
$ instagram-save -f urls.txt
const save = require('instagram-save');
save('dU4fHDw-Ho', 'myDir').then(res => {
console.log(res.file);
});
$ npm test
$ npm run lint
MIT © Eric Nishio