Retrieve as many posts at once as possible for Instagram hashtags

This commit is contained in:
JustAnotherArchivist
2019-06-21 09:56:12 +00:00
parent d2315feec1
commit e6c934c0b8

View File

@@ -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'