Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
Code updated duo to instagram changes in rhx_gis parameter.
  • Loading branch information
Snbig committed May 30, 2019
1 parent 2c7dca0 commit 5da63c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InstaTracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def useridToUsername(id):
if str(id).isnumeric():
r1 = requests.get('https://instagram.com/instagram/', headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0', }).text
rhx_gis = json.loads(re.compile('window._sharedData = ({.*?});', re.DOTALL).search(r1).group(1))['rhx_gis']
rhx_gis = json.loads(re.compile('window._sharedData = ({.*?});', re.DOTALL).search(r1).group(1))['nonce']

ppc = re.search(r'ProfilePageContainer.js/(.*?).js', r1).group(1)
r2 = requests.get('https://www.instagram.com/static/bundles/es6/ProfilePageContainer.js/' + ppc + '.js').text
Expand Down

0 comments on commit 5da63c5

Please sign in to comment.