Hey there, I´m searching for a way to display my Instagram followers on the frontend, to keep an eye on them. Found out it could be possible with the Scrape sensor, but because I´m more beginner in this material, I don´t know if its possible to scrape the follower number from a Instagram Website (like this one here for an example: https://www.instagram.com/fcbayern/?hl=de)
thank you very much! just tried it out and it works perfect! one last question, I want to see the full follower number, right now i see for example 97.8K but is it possible to see the detail like 97827?
I’m having a similar issue. I’ve tried to set the user agent, but no luck. The HTML returned by the page is still valid and matches our patterns. I can’t tell if IG have some javascript setting this data after page load, or if the page request is being blocked in it’s entirety. We need more detailed logs from the GET request being made by the scraper module to know for sure. A response code or message would help a lot, but I don’t know how to get that data from HA.
I think one solution could be to add a session_id in the header, but I still could not find out how to do that.
Another (paid) way would be to use the Instagram API. Since Instagram gives you a API key only for professional use (as far as I know), I use https://smartmetrics.co to grab my Instagram Followers, but also other details about my profile (like comments, story views etc.) But it costs 10 Euros a month, and it only updates every 60 minutes
you can get the data from just calling https://www.instagram.com/USERNAME/?__a=1
it isnt json, but i think there could be a method to extract the “edge_followed_by”:{“count”: and you would get the followers.
i tried to get an instagram api but its complicated as fuck. never got it working.