Make carousels great again! 🎠

This commit is contained in:
horhik 2021-09-08 22:01:49 +03:00
parent 95e8420471
commit 31380e67a4
4 changed files with 4 additions and 5 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -42,11 +42,10 @@ def toot(urls, title, mastodon, fetched_user ):
ids = []
for url in urls:
ids.append(upload_image_to_mastodon(url, mastodon))
print(url)
post_text = str(title) + "\n" + "crosposted from https://instagram.com/"+fetched_user # creating post text
post_text = post_text[0:1000]
print(ids)
mastodon.status_post(post_text, media_ids = ids)
post_text = str(title) + "\n" + "crosposted from https://instagram.com/"+fetched_user # creating post text
post_text = post_text[0:1000]
print(ids)
mastodon.status_post(post_text, media_ids = ids)
except Exception as e:
print(Fore.RED + "😿 > Failed to create toot \n", e)