tolgahanuzun / Flask-Login-Example

Flask + SQLAlchemy Simple Login Example
50 stars 32 forks source link

Instagram #3

Closed comminman23 closed 1 year ago

comminman23 commented 1 year ago

getfollowedby(url): """View Instagram user follower count""" link = f'https://www.instagram.com/{https://instagram.com/sarahpearce13?igshid=YmMyMTA2M2Y=}/?__a=1' Sarahpearce13= requests.get(link) return (sarahpearce13.json()['graphql']['sarahpearce13']['edge_followed_by']['count'])

defSarahpearce13(url): """Split the URL from the username""" return url.split("instagram.com/")[1].replace("/", "")

imvickykumar999 commented 1 year ago

getfollowedby(url): """View Instagram user follower count""" link = f'https://www.instagram.com/{https://instagram.com/sarahpearce13?igshid=YmMyMTA2M2Y=}/?__a=1' Sarahpearce13= requests.get(link) return (sarahpearce13.json()['graphql']['sarahpearce13']['edge_followed_by']['count'])

defSarahpearce13(url): """Split the URL from the username""" return url.split("instagram.com/")[1].replace("/", "")

Try this... https://www.instagram.com/sarahpearce13/?__a=1&__d=1

tolgahanuzun commented 1 year ago

The API url has changed. I change and fix it. Thank you for the message. @imvickykumar999 @comminman23