subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.38k stars 686 forks source link

hashtag_medias_recent always returning top media instead of recent #1256

Closed coder-maddy closed 1 year ago

coder-maddy commented 1 year ago

hashtag_medias_recent always returning top media instead of recent media. Can be reproduced from below code.

` from instagrapi import Client import time

client = Client() client.login('','')

medias = client.hashtag_medias_recent('programming', 20)

for i, media in enumerate(medias): client.media_like(media.id) print(f'Likes post number {i+1}') time.sleep(3)

print('exiting') `

SaeidB commented 1 year ago

will be fixed soon :

https://github.com/adw0rd/instagrapi/pull/1257

coder-maddy commented 1 year ago

@adw0rd May I know when package will be available with this fix?

SaeidB commented 1 year ago

@adw0rd May I know when package will be available with this fix?

Its already added, update your package to get fixes

adw0rd commented 1 year ago

@coder-maddy try pip install instagrapi==1.17.4

coder-maddy commented 1 year ago

Working now thanks @adw0rd and @SaeidB