Download single most recent post from Instagram profile using Instaloader

1k Views Asked by At

i am trying to download the latest post of a profile using "Instaloader" in Python. I have found something about hashtags, but not about profiles. So how do i download only the latest post of a profile? Thanks in advance!

1

There are 1 best solutions below

0
On

The documentation has a section on profiles.

From the examples:

L = Instaloader()
profile = Profile.from_username(L.context, USERNAME)

You can then use the get_posts method to get a profile's posts, including the latest one.