Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Horhik/Instagram2Fedi
Python script for crossposting from Instagram to Mastodon or Pixelfed
https://github.com/Horhik/Instagram2Fedi
blogging bot crossposting docker federation fediverse instagram mastodon pixelfed python script
Last synced: 4 days ago
JSON representation
Python script for crossposting from Instagram to Mastodon or Pixelfed
- Host: GitHub
- URL: https://github.com/Horhik/Instagram2Fedi
- Owner: Horhik
- License: gpl-3.0
- Created: 2021-08-31T14:04:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-20T10:57:23.000Z (about 1 year ago)
- Last Synced: 2024-04-13T21:16:22.994Z (7 months ago)
- Topics: blogging, bot, crossposting, docker, federation, fediverse, instagram, mastodon, pixelfed, python, script
- Language: Python
- Homepage:
- Size: 293 KB
- Stars: 91
- Watchers: 5
- Forks: 7
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
_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_
# Instagram2Fedi
Simple tool for crossposting posts from instagram to Mastodon/Pixelfed.
## Using without docker
See [Docs.md](./Docs.md)## Using docker-compose
1. create `docker-compose.yaml` with following content
_You can use default.docker-compose.yaml from repo_
``` yaml
version: '3'
services:
bot:
build:
context: .
image: "horhik/instagram2fedi:latest"
environment:
- YOUR_CONTAINER_NAME=
- I2M_INSTAGRAM_USER=
- I2M_INSTANCE=
- I2M_TOKEN=
- 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 -
- I2M_USER_NAME=admin # Your instagram login name
- I2M_USER_PASSWORD=admin # Your instagram password
```** 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_
2. And edit environment variables
3. 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```` bash
git clone https://github.com/horhik/instagram2fedi
cd instagram2fedi
nano ./env.sh
source ./run.sh
```![screenshot](./img.png)