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