Make carousels great again! 🎠
This commit is contained in:
parent
95e8420471
commit
31380e67a4
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -42,11 +42,10 @@ def toot(urls, title, mastodon, fetched_user ):
|
||||||
ids = []
|
ids = []
|
||||||
for url in urls:
|
for url in urls:
|
||||||
ids.append(upload_image_to_mastodon(url, mastodon))
|
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 = str(title) + "\n" + "crosposted from https://instagram.com/"+fetched_user # creating post text
|
post_text = post_text[0:1000]
|
||||||
post_text = post_text[0:1000]
|
print(ids)
|
||||||
print(ids)
|
mastodon.status_post(post_text, media_ids = ids)
|
||||||
mastodon.status_post(post_text, media_ids = ids)
|
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(Fore.RED + "😿 > Failed to create toot \n", e)
|
print(Fore.RED + "😿 > Failed to create toot \n", e)
|
||||||
|
|
Loading…
Reference in New Issue