mirror of
https://github.com/Horhik/Instagram2Fedi.git
synced 2025-01-15 13:26:40 +00:00
add README
This commit is contained in:
parent
9d9461ec70
commit
75530bae88
14
README.md
Normal file
14
README.md
Normal 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
|
||||
```
|
||||
|
||||
|
|
@ -141,3 +141,4 @@ https://scontent-arn2-1.cdninstagram.com/v/t51.2885-15/e35/s1080x1080/151776689_
|
|||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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/'
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue