althonos / InstaLooter

Another API-less Instagram pictures and videos downloader.
GNU General Public License v3.0
2.01k stars 256 forks source link

[QUESTION] Is it currently possible to extract post by specific hashtag in given time range? #277

Open Kryhowsky opened 4 years ago

Kryhowsky commented 4 years ago

I found some closed issues with this problem but last ends with information that instagram allow to search for specific hashtag without login.

Is it currently possible? I tried to download by CLI command posts from November this year with hashtag "protein" and received only one result.

When I do:

python L = HashtagLooter("protein") L.donwload()

I have "No medias" error.

althonos commented 4 years ago

Hi @Kryhowsky

The time range option is a bit broken because Instagram does not return the medias for a given hashtag consistently with regard to the date they were posted. As such, because instalooter will stop whenever it encounters the first post older than the end date, it will not always download the same number of posts for the same time frame.

Unfortunately, the other option is to explore the entire list of medias, which could take forever, without ever knowing when to stop. Because Instagram reports more hashtagged medias than actually reachable (some of them may be private, but they are still counted), we can't even use the number of medias it gives back confidently either.