til/Applications/Misc/Instaloader.md

60 lines
842 B
Markdown
Raw Normal View History

2020-05-08 18:58:04 +00:00
# [Instaloader](https://instaloader.github.io/)
2020-02-08 04:51:32 +00:00
2021-07-04 10:29:06 +00:00
Should install Instaloader with Python venv:
```sh
# Activate venv
python3 -m pip install instaloader
# Run Instaloader
python3 -m instaloader ...
```
2020-02-08 04:51:32 +00:00
2020-05-08 18:58:04 +00:00
Create `args.txt`, remember to change `username` with your real username:
2020-02-08 04:51:32 +00:00
```txt
2020-04-18 20:21:04 +00:00
--login=username
--sessionfile=./session
2020-02-08 04:51:32 +00:00
--no-video-thumbnails
--no-captions
--no-metadata-json
2021-07-04 10:29:06 +00:00
--fast-update
2020-04-18 20:21:04 +00:00
```
2021-07-04 10:29:06 +00:00
Create `posts.txt`:
2020-04-18 20:21:04 +00:00
```txt
2021-07-04 10:29:06 +00:00
--dirname-pattern={target}/posts
2020-04-18 20:21:04 +00:00
```
2021-07-04 10:29:06 +00:00
Create `stories.txt`:
2020-04-18 20:21:04 +00:00
```txt
--stories
--no-posts
2021-07-04 10:29:06 +00:00
--no-profile-pic
--dirname-pattern={target}/stories
2020-04-18 20:21:04 +00:00
```
2021-07-04 10:29:06 +00:00
Create `hightlights.txt`:
2020-04-18 20:21:04 +00:00
```txt
--highlights
--no-posts
2021-07-04 10:29:06 +00:00
--no-profile-pic
2021-07-04 10:30:31 +00:00
--dirname-pattern={target}/highlights
2020-02-08 04:51:32 +00:00
```
2021-07-04 10:29:06 +00:00
Create `targets.txt`
2020-05-11 17:59:01 +00:00
```txt
2021-07-04 10:29:06 +00:00
targetname1
targetname2
2020-05-11 17:59:01 +00:00
```
2021-07-04 10:29:06 +00:00
Finally, example downloaing posts:
2020-02-08 04:51:32 +00:00
```sh
2021-07-04 10:29:06 +00:00
instaloader +args.txt +posts.txt +targets.txt
2020-02-08 04:51:32 +00:00
```