Closed mattiabaldari closed 2 years ago
I found a way thanks to @MaximBoyarskiy within issue number #297.
The solution is to use max_id=results['next_max_id']
within the feed_tag
parameters.
while has_more and len(items) < posts_number:
if "results" in locals():
results = api.feed_tag(hashtag, rank_token, max_id=results['next_max_id'])
else:
results = api.feed_tag(hashtag, rank_token)
items.extend(results.get('items', []))
has_more = results.get('more_available')
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (==> [x] no spaces).Before submitting an issue, make sure you have:
Which client are you using?
instagram_private_api/
)instagram_web_api/
)Describe your Question/Issue:
I'm trying to extract a set of posts under a certain hashtag. In order to do so I'm using the following function "feed_tag", but I do not find a way to specify HOW MANY posts I want to get. I tried with the variable "count" as per other functions, but it doesn't seems to work. Can you tell me if there is a way?
Paste the output of
python -V
here:Code: