Python script for crossposting from Instagram to Mastodon or Pixelfed
Go to file
George 880bbd7c40
Update README.md
2022-05-12 23:27:59 +03:00
src Add both flags and environment variables support 2022-04-13 23:11:54 +03:00
.gitignore update gitignore 2021-11-20 12:53:31 +03:00
Dockerfile add more environment variables 2022-04-13 21:53:05 +03:00
Docs.md Update Docs.md 2021-11-20 14:38:10 +03:00
LICENSE some changes 2021-11-17 11:38:22 -05:00
README.md Update README.md 2022-05-12 23:27:59 +03:00
docker-compose.yaml finish docker-compose file 2022-04-13 22:42:50 +03:00
env.sh Add both flags and environment variables support 2022-04-13 23:11:54 +03:00
img.png update image 2021-11-22 15:30:59 +03:00
insta2fedi remove shit from ./insta2fedi 2021-11-14 23:20:48 +03:00
requirements.txt update requipments.txt 2021-11-23 10:37:07 +03:00
run.sh Add both flags and environment variables support 2022-04-13 23:11:54 +03:00

README.md

Instagram2Fedi

Simple tool for crossposting posts from instagram to Mastodon/Pixelfed.

Using without docker

See Docs.md

Using docker-compose

  1. create docker-compose.yaml with following content
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   -
  1. And edit environment variables

  2. Run docker-compose up -d

Using with Dockerfile

Just clone repo, specify variables and run it. You can write all needed variables in ./env.sh and then do source ./run.sh

git clone https://github.com/horhik/instagram2fedi
cd instagram2fedi
nano ./env.sh
source ./run.sh

screenshot