mirror of
https://github.com/misiektoja/instagram_monitor.git
synced 2026-04-25 14:25:55 +03:00
[GH-ISSUE #16] CHECK_POSTS_IN_HOURS_RANGE settings are not being followed #13
Labels
No labels
Stale
Stale
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/instagram_monitor#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tomballgithub on GitHub (Oct 2, 2025).
Original GitHub issue: https://github.com/misiektoja/instagram_monitor/issues/16
While trying to use the CHECK_POSTS_IN_HOUR_RANGE feature, it doesn't seem to be respecting the hour ranges defined.
The log below says the valid ranges are:
* Hours for checking posts/reels: 09:00 - 10:59, 22:00 - 23:59But the same log shows updates to the followers and followings at times outside that range
And then there are three more related to login errors, also outside of the range, although maybe the feature isn't supposed to respect those times for these logins, although it's attempting to log in and possibly causes problems, as I am trying to restrict it to less hours per day.
Here is the related part of my config file:
Here is the log, showing that those settings above are recognized as they should be.
@tomballgithub commented on GitHub (Oct 2, 2025):
Looking at the code, only a small portion of all the instagram traffic is behind the CHECK_POSTS_IN_HOURS_RANGE.
And this is indeed documented as it impacts "checks for new posts / reels" rather than everything.
Is there a reason for this versus being able to restrict all traffic to certain times? I might edit the code to do what I'd like, but not if there is a technical or practical reason why this shouldn't be done @misiektoja
@tomballgithub commented on GitHub (Oct 4, 2025):
I am testing out a change that bypasses all traffic outside of desired hours to see what happens. First thing I noticed is that blocking off hours impacts the calculation of the BE HUMAN probability, so I will need to adjust that
@misiektoja commented on GitHub (Oct 12, 2025):
I think it's like that for historical reasons. Initially, Instagram's anti-bot mechanisms weren't so strict and it was enough to have only the post/reel check covered by this mechanism. Recently they've tightened the screws, so that's no longer sufficient.
If you've already implemented something to handle this, please share a PR - it definitely makes sense to make it affect all checks.
@tomballgithub commented on GitHub (Oct 12, 2025):
I'll share a PR, just need to expand it to stop even the initial traffic before the primary loop. I'll make it all configurable.
For whatever reason, I went from accounts failing every single day and with repeated attempts making it barely to 3 days, to now I've been running 9 days without incident. I'm running 2 hrs in the AM and 2 in the PM and just checking followers/followees. Aside from the time changes, I haven't adjusted my config.
@github-actions[bot] commented on GitHub (Nov 12, 2025):
This issue has been marked as stale because it has been inactive for 30 days. It will be closed in 7 days if no further activity occurs.
@github-actions[bot] commented on GitHub (Nov 20, 2025):
Closing this issue due to inactivity. Feel free to reopen if needed.
@tomballgithub commented on GitHub (Dec 16, 2025):
Added PR #22 for this.