Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua authored Jul 4, 2024
2 parents 3cd2ac0 + 1625303 commit 318efe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instagram_to_discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def send_to_discord(post_url, image_url, author_name, author_icon_url, post_desc
"timestamp": post_timestamp.strftime("%Y-%m-%dT%H:%M:%S"),
"author": {
"name": author_name,
"url": f"https://www.instagram.com/{author_name}",
"url": f"https://www.instagram.com/{author_name}/",
"icon_url": author_icon_url
},
"footer": {
Expand All @@ -53,7 +53,7 @@ def check_for_new_posts():
"""Check for new Instagram posts and send them to Discord."""
profile = instaloader.Profile.from_username(L.context, TARGET_INSTAGRAM_PROFILE)
for post in profile.get_posts():
instagram_post_url = "https://instagram.com/p/" + post.shortcode
instagram_post_url = "https://instagram.com/p/" + post.shortcode + "/"
image_url = post.url
author_name = profile.username
author_icon_url = profile.profile_pic_url
Expand Down

0 comments on commit 318efe4

Please sign in to comment.