add README

This commit is contained in:
horhik 2021-08-31 23:57:31 +03:00
parent 9d9461ec70
commit 75530bae88
3 changed files with 18 additions and 2 deletions

14
README.md Normal file
View File

@ -0,0 +1,14 @@
# Instagram2Mastodon 🐘
Simple python 🐍 script for crossposting from instagram to mastodon (maybe it could work with pixelfed)
## Installing
Just clone repo, build a docker container and run it
``` bash
git clone https://github.com/horhik/instagram2mastodon
cd instagram2mastodon
docker build -t YOUR_CONTAINER_NAME .
docker container run -it -v $(pwd):/app I2M_INSTAGRAM_USER I2M_INSTANCE I2M_TOKEN
```

View File

@ -141,3 +141,4 @@ https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/151776689_

View File

@ -12,7 +12,8 @@ f.write("\n")
f.close()
fetched_user = sys.argv[1]
mastodon_token = sys.argv[2]
mastodon_instance = sys.argv[2]
mastodon_token = sys.argv[3]
print(Fore.GREEN + '🚀 > Connecting to Instagram...')
print(Style.RESET_ALL)
@ -24,7 +25,7 @@ print(Fore.GREEN + '🚀 > Connecting to Mastodon/Pixelfed...')
print(Style.RESET_ALL)
mastodon = Mastodon(
access_token = mastodon_token,
api_base_url = 'https://mastodon.ml'
api_base_url = mastodon_instance
# api_base_url = 'https://pixelfed.tokyo/'
)