Update Instaloader.md

main
sudo pacman -Syu 2021-07-04 17:29:06 +07:00 committed by GitHub
parent 3841d4051f
commit 69746663a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 14 deletions

View File

@ -1,6 +1,14 @@
# [Instaloader](https://instaloader.github.io/) # [Instaloader](https://instaloader.github.io/)
Should install Instaloader with Python venv. Should install Instaloader with Python venv:
```sh
# Activate venv
python3 -m pip install instaloader
# Run Instaloader
python3 -m instaloader ...
```
Create `args.txt`, remember to change `username` with your real username: Create `args.txt`, remember to change `username` with your real username:
@ -10,38 +18,42 @@ Create `args.txt`, remember to change `username` with your real username:
--no-video-thumbnails --no-video-thumbnails
--no-captions --no-captions
--no-metadata-json --no-metadata-json
```
Want more custom? Add to `args.txt`.
Downloading posts:
```txt
--fast-update --fast-update
``` ```
Downloading only stories: Create `posts.txt`:
```txt
--dirname-pattern={target}/posts
```
Create `stories.txt`:
```txt ```txt
--stories --stories
--no-posts --no-posts
--no-profile-pic
--dirname-pattern={target}/stories
``` ```
Downloading only hightlights: Create `hightlights.txt`:
```txt ```txt
--highlights --highlights
--no-posts --no-posts
--no-profile-pic
--dirname-pattern={target}/stories
``` ```
Filter posts: Create `targets.txt`
```txt ```txt
--post-filter="date_utc <= datetime(2020, 6, 30)" targetname1
targetname2
``` ```
Finally run, remember to change `targetname1`, `targetname2`, ... to your target: Finally, example downloaing posts:
```sh ```sh
instaloader +args.txt targetname1 targetname2 instaloader +args.txt +posts.txt +targets.txt
``` ```