From 46a51008f816c73b9626586b447d208c667271ef Mon Sep 17 00:00:00 2001 From: JustAnotherArchivist Date: Thu, 16 May 2019 16:19:51 +0000 Subject: [PATCH] Fix Instagram signature calculation --- 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 066fe09..e2e3572 100644 --- a/snscrape/modules/instagram.py +++ b/snscrape/modules/instagram.py @@ -73,7 +73,7 @@ class InstagramCommonScraper(snscrape.base.Scraper): return jsonData = r.text.split('')[0] # May throw an IndexError if Instagram changes something again; we just let that bubble. response = json.loads(jsonData) - rhxGis = response['rhx_gis'] + rhxGis = response['rhx_gis'] if 'rhx_gis' in response else '' if response['entry_data'][self._pageName][0]['graphql'][self._responseContainer][self._edgeXToMedia]['count'] == 0: logger.info(f'{self._mode} has no posts') return