From e6c934c0b8a740a485ce243b2a75e56e1a7dec38 Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Fri, 21 Jun 2019 09:56:12 +0000 Subject: [PATCH] Retrieve as many posts at once as possible for Instagram hashtags --- snscrape/modules/instagram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snscrape/modules/instagram.py b/snscrape/modules/instagram.py index 5551898..11bcf9b 100644 --- a/snscrape/modules/instagram.py +++ b/snscrape/modules/instagram.py @@ -44,7 +44,7 @@ class InstagramCommonScraper(snscrape.base.Scraper): self._edgeXToMedia = 'edge_hashtag_to_media' self._pageIDKey = 'name' self._queryHash = 'f92f56d47dc7a55b606908374b43a314' - self._variablesFormat = '{{"tag_name":"{pageID}","show_ranked":false,"first":10,"after":"{endCursor}"}}' + self._variablesFormat = '{{"tag_name":"{pageID}","first":50,"after":"{endCursor}"}}' elif self._mode == 'Location': self._initialUrl = f'https://www.instagram.com/explore/locations/{self._name}/' self._pageName = 'LocationsPage'