Python script for crossposting from Instagram to Mastodon or Pixelfed
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
George 509d44f3a4
Just removed emoji
4 days ago
src Just removed emoji 4 days ago
.gitignore update gitignore 6 months ago
Dockerfile add more environment variables 1 month ago Update 6 months ago
LICENSE some changes 6 months ago Update 4 days ago
docker-compose.yaml finish docker-compose file 1 month ago Add both flags and environment variables support 1 month ago
img.png update image 6 months ago
insta2fedi remove shit from ./insta2fedi 6 months ago
requirements.txt update requipments.txt 6 months ago Add both flags and environment variables support 1 month ago


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

Using without docker


Using docker-compose

  1. create docker-compose.yaml with following content
version: '3'
      context: .
    image: "horhik/instagram2fedi:latest"
      - 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 ./ and then do source ./

git clone
cd instagram2fedi
nano ./
source ./