arduino-instagram-stats
arduino-instagram-stats copied to clipboard
No Longer Pulling Data
It appears that the code is no longer pulling data. Anyone else having this issue? I suspect it has to do with the JSON output from Instagram.
I'm having the same issue. Worked great on Monday, by Tuesday the counter was showing zero, and I hadn't changed anything. I'm fairly new to this so I'm not sure what to change to fix it.
Same issue here!. "Connection failed" "Unexpected HTTP Status Code: 0"
Same here, was working for month..
yea i've got the same issue. I think instagram have changed their code. where it use to be followed_by its now edge_followed_by and some other changes. i was trying to watch brains video link to see if i could change the script to make it work but i have no programing experience.
yea i've got the same issue. I think instagram have changed their code. where it use to be followed_by its now edge_followed_by and some other changes. i was trying to watch brains video link to see if i could change the script to make it work but i have no programing experience.
"edge_followed_by" is in the code, must be something different...
Ok. i was trying comparing the json data on Brians video to the data i could see now. all this is way over my head. i hope one of you smarter guys can figure it out.
this was the casing i made for the follower counter
Hello all. I connected my IG sub counter to a mobile hotspot and its displaying my followers for about 15 min. then it displays 0. I reconnected it to my home network and reset my modem(i think this resets your IP address) and it worked for another 15 min. so im guessing its the same issue mentioned in issue #8 I tried increasing the time (see link Here) from 3000 to 6000 then to 60000 but had the same issue after 15 min it would just show 0. im gonna try 120000 now
its been ok for the last half hour. with setting 120000 (2min)
In my config is a 600000 and it doesn´t work, maybe you want to start there. I will try 1 hour now.
with 120000 (2min) it worked for a few hours. I will try a longer period now 1800000 (30min) @Emmpunkt it didn't work for you at all at with 600000? or stoped working after period time? did you reset your modem (IP address)? how is going with 3600000 (1hr) setting?
Instagram has changed their API and it appears they are blocking IP addresses based on the number or type of requests.
Brandon
On Nov 23, 2020, at 00:55, John Made it [email protected] wrote:
with 120000 (2min) it worked for a few hours. I will try a longer period now 1800000 (30min) @Emmpunkt it didn't work for you at all at with 600000? or stoped working after period time? did you reset your modem (IP address)? how is going with 3600000 (1hr) setting?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Its been ok for most of the day at 1800000 (30min) setting except for a few hours it changed to 0 but then returned to correct number by itself. but i was messing around with a 2nd sub counter at the time so it probably had something to do with
Right. They are blocking the IP. After reconnect the router you get a new one and it works for some time. Im actually working on the official Insta-API. Does anyone realized the whole things with OAuth2?
@John-Made-it With a new IP and 10 Minutes it worked for 1/2 hour or a bit more. Now with an hour it worked the whole day. I think i will keep it at 1 hour because i don´t have that much follower ;) In my case its a Flip-Dot-Clock that shows mainly the time, only every 10 minutes i show my insta count for a minute...
This is not my solution. I hope someone also will go forward to get a running API with Arduino. This is, what I realized with youtube counter and Instagram. https://youtu.be/5PyfLTDUzaE
I was wondering, cant we have a code where board actually logs in to an Instagram account and checks that way?
Reason why im asking, if you go to any insta page through incognito mode, it will show you some pics and account info, and then ask you to log in after a while. But still it shows you the info right? Nice
But when this counter board requests page too many times from IP address insta kind off blocks you if it make sense.
So if someone is having this issue, go into incognito and just paste a random insta page url, you will see what I mean, it takes you streight to log in page instead of showing some info of the page at first.
Now, I dont have any experience in coding, and im making this for my wife's bday, and I only have like 1,5 days. Is there a way to implement log in script into code so instead of just randomly searching page and pulling data, code logs in first and then pull the data.
I've been trying different delay values and had it working for 13 hours. But then a few min ago it went back to 0. I wonder if there's a delay that Instagram will allow? I suppose we can keep guessing until we find it.
@LincolnGW what's the longest time you have tried?
@LincolnGW what's the longest time you have tried?
30 minutes, which worked for 13 hours. I'm trying to think of other ways this could be accomplished and will be doing a bunch of research over the next few days. I'd really like to figure this out!
I had 50min and it still times out. maybe as well has how often you pull the data it's also checking the time between each check. if your pulling data at the same intervals of time they know it's a bot and blacklisting your IP. just a tought i know very little about coding
I actually have it at 15 min and it works now for about 24h...
@dmartoon keep us posted. I've been testing different delay values but it seems my home IP is blocked now. I set up a fresh ESP8286 board and it didn't work from the first time I loaded the code, which I'm guessing means my router IP is blocked. I've also been doing some reading on Instagram and it seems they like to block IPs when people attempt to automate just about anything. I suppose the alternative is going the API route, but that seems pretty complicated.
@LincolnGW do you think we can impliment random refresh latency between 15-20 min so they dont assume its automated? I have no coding experience but it seems pretty simple to dp right?
ok I got the 0 again. gonna try research how I can implement random into refresh time. 'insert "I have no idea what I'm doing" meme'....
I set up mine for a 3hr interval yesterday and woke up to a 0. So for less than 14 hours it was working.
@witnessmenow in his original video that it was a bit difficult to get a api from instagram. but the video is 2 years old so maybe the process has changed?
Did anyone test this? Because this uses the graph-api from facebook. Insta uses the same. Perhaps this one is expandable for Instagram. I will test it soon. https://github.com/witnessmenow/arduino-facebook-api
I guess my IP got blocked! :( Is there a workaround without changing the IP adress? I'm making a sub counter for a friend.
I have the same problem as described by @dmartoon ..
Nope, client insecure is not the solution. You can test it. Do more requests and your IP will be blocked.
Did anyone test this? Because this uses the graph-api from facebook. Insta uses the same. Perhaps this one is expandable for Instagram. I will test it soon. https://github.com/witnessmenow/arduino-facebook-api
I thought about it too but the issue here is that I think Instagram has changed their API and even if you use graph-api you wont be able to recover the follower_count. Taking a look at the developer guide from facebook it seems that you need to use insights to get statistics information of an account (https://developers.facebook.com/docs/instagram-api/reference/user/insights).
The only metric referencing the number of followers is "follower_count" which unfortunately is the number of NEW followers per day for the past 30 days... I could have missed something.
If I am right the only solution would be to, give as input the initial number of followers and keep count of them, or try yo somehow, log in from Arduino and access values by scrapping them as before. Not sure which solution is easier/better/doable.