Instagram2Fedi/README.md

58 lines
2 KiB
Markdown
Raw Normal View History

2022-09-01 09:22:05 +00:00
_Guys... Instagram is sh*t. Even [bibliogram](https://www.reddit.com/r/privacy/comments/wrczxc/bibliogram_is_being_discontinued/) is being discontinued. If you're able to migrate you proile to any fediverse instance or contact to person, whose instagram you'd like to crosspost and ask him to post to fediverse to, it wil be the best desicion_
2021-08-31 21:13:09 +00:00
# Instagram2Fedi <span><img width="50px" src="https://upload.wikimedia.org/wikipedia/commons/9/93/Fediverse_logo_proposal.svg"></span>
2021-08-31 21:10:17 +00:00
2021-11-22 12:27:38 +00:00
Simple tool for crossposting posts from instagram to Mastodon/Pixelfed.
2021-08-31 20:57:31 +00:00
2021-11-14 20:49:10 +00:00
## Using without docker
See [Docs.md](./Docs.md)
2022-04-13 20:10:49 +00:00
## Using docker-compose
1. create `docker-compose.yaml` with following content
2022-08-31 18:02:54 +00:00
_You can use default.docker-compose.yaml from repo_
2022-05-12 20:27:59 +00:00
``` yaml
2022-04-13 20:10:49 +00:00
version: '3'
services:
bot:
build:
context: .
image: "horhik/instagram2fedi:latest"
environment:
- YOUR_CONTAINER_NAME=<whatever>
- I2M_INSTAGRAM_USER=<instgram username>
- I2M_INSTANCE=<mastodon or pixelfed instance>
- I2M_TOKEN=<your token here>
- I2M_CHECK_INTERVAL=3600 #1 hour
- I2M_POST_INTERVAL=3600 #1 hour
- I2M_USE_MASTODON=4 #max carouse - is 4, if there's no limit set to -1
- I2M_FETCH_COUNT=5 # how many instagram posts to fetch per check_interval -
2022-08-31 18:02:54 +00:00
- I2M_USER_NAME=admin # Your instagram login name
- I2M_USER_PASSWORD=admin # Your instagram password
2022-04-13 20:10:49 +00:00
```
2022-08-31 18:02:54 +00:00
** Note: ** _Since somewhen it's seems not possible to fetch any data from instagram anonymously (maybe i'm wrong and there's a solution, I'll be very happy to know about it). Due that you unfortunately have to had an instagram accound and provide login and password to this script_
2022-04-13 20:10:49 +00:00
2. And edit environment variables
3. Run `docker-compose up -d`
## Using with Dockerfile
2021-08-31 21:10:17 +00:00
2021-11-22 12:27:38 +00:00
Just clone repo, specify variables and run it.
2021-11-14 20:49:10 +00:00
You can write all needed variables in `./env.sh` and then do `source ./run.sh`
2021-08-31 21:10:17 +00:00
2021-08-31 20:57:31 +00:00
``` bash
2021-08-31 21:14:11 +00:00
git clone https://github.com/horhik/instagram2fedi
cd instagram2fedi
nano ./env.sh
2021-11-22 12:27:38 +00:00
source ./run.sh
2021-08-31 20:57:31 +00:00
```
2021-11-22 12:30:59 +00:00
![screenshot](./img.png)
2021-08-31 21:23:35 +00:00