[Python] Does anyone know how to download only new images from an instagram profile in python...

Discussão em 'Python' iniciado por Stack, Março 20, 2025.

  1. Stack

    Stack Membro Participativo

    I'm doing a project where I use the instaloader API for python and I want to download images from the feed and stories of a profile, but I want the loop code to only download the images if they are new...

    In the documentation it says about the LatestStamps(latest_stamps_file) class, but I can't use it...

    Can someone help me?

    import instaloader

    ig = instaloader.Instaloader(save_metadata=False, download_video_thumbnails=False)

    user = "USER"
    password = "PASSWORD"

    profile_name = input ("Enter Instagram Profile Name: ")

    print ("Downloading Media...")

    ig.login(user, password)
    ig.download_profile(profile_name, download_stories_only=True,profile_pic=False)

    print ("Stories Download Completed!")

    Continue reading...

Compartilhe esta Página