https://github.com/balta2ar/insave
Save Instagram feed locally
https://github.com/balta2ar/insave
Last synced: 8 months ago
JSON representation
Save Instagram feed locally
- Host: GitHub
- URL: https://github.com/balta2ar/insave
- Owner: balta2ar
- Created: 2014-08-21T20:25:25.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-08-02T15:15:33.000Z (over 5 years ago)
- Last Synced: 2023-10-20T18:06:43.191Z (about 2 years ago)
- Language: Jupyter Notebook
- Size: 134 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
insave
======
Save Instagram feed locally.
### Usage
```
usage: insave.py [-h] [-p PATH] [-u USERID] [-d DOWNLOAD] [-s SKIP]
[-f FETCH] [-q] [-l LOG] [-t TOKEN]
Save instagram feed locally
optional arguments:
-h, --help show this help message and exit
-p PATH, --path PATH path to saved media (default: media)
-u USERID, --userid USERID
user id (not name) (default: 46764821)
-d DOWNLOAD, --download DOWNLOAD
number of recent medias to download before termination (default: 100)
-s SKIP, --skip SKIP number of recent medias to skip CONTINUOUSLY before termination (default: 100)
-f FETCH, --fetch FETCH
number of medias to ask in each API request (default: 100)
-q, --quiet do not print to stdout (default: False)
-l LOG, --log LOG log to file (default: None)
-t TOKEN, --token TOKEN
path to access token file (default: token)
```
This is how I run it in cron:
```
# save instagram feed every hour
0 * * * * cd /home/bz/prg/src/bz/python/insave && \
python2 insave.py --path ~/pictures/dropbox/insave \
--download 10000 --skip 100 --fetch 100 --log \
/var/log/insave.log > /dev/null
```
### Dependencies
- [requests](https://github.com/kennethreitz/requests)
### Author
(c) 2014-2020 Yuri Bochkarev