[PR #22] [MERGED] Adjust CHECK_POSTS_IN_HOURS_RANGE support to cover additional activity #55

Closed
opened 2026-02-27 20:05:12 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/misiektoja/instagram_monitor/pull/22
Author: @tomballgithub
Created: 12/16/2025
Status: Merged
Merged: 12/18/2025
Merged by: @misiektoja

Base: devHead: hours_allowed


📝 Commits (4)

  • 710c0b7 Merge pull request #1 from misiektoja/main
  • 3bc6003 Adjust CHECK_POSTS_IN_HOURS_RANGE support to cover additional activity
  • 853403f Fix missing cur_h assignment
  • 45f258d Merge branch 'misiektoja:main' into hours_allowed

📊 Changes

1 file changed (+418 additions, -406 deletions)

View changed files

📝 instagram_monitor.py (+418 -406)

📄 Description

CHECK_POSTS_IN_HOURS_RANGE is now used for all activities in the main loop. Added a VERBOSE configuration option.

The indention of much of the main loop is difficult to look at in the Github diff tool. Beyond that, the actual changes are straightforward.

Here is what the VERBOSE option shows:

*** Skipping Updates. Current Hour: 23. Allowed hours: [9, 10, 21, 22]
*** Fetching Updates. Current Hour: 9. Allowed hours: [9, 10, 21, 22]

full example:

* BeHuman: simulation start
* BeHuman #1: explore feed peek OK
* BeHuman #2: viewed own profile OK
* BeHuman #4: visited followee mia.bunnni OK
* BeHuman: simulation stop

Timestamp:              Tue 16 Dec 2025, 10:48:48
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
*** Sleeping for: 1.5 hours @ 10:48:48
*** Skipping Updates. Current Hour: 12. Allowed hours: [9, 10, 21, 22]
*** Sleeping for: 1.0 hours @ 12:16:50
*** Skipping Updates. Current Hour: 13. Allowed hours: [9, 10, 21, 22]
*** Sleeping for: 1.2 hours @ 13:16:53
*** Skipping Updates. Current Hour: 14. Allowed hours: [9, 10, 21, 22]
*** Sleeping for: 1.4 hours @ 14:29:31
*** Skipping Updates. Current Hour: 15. Allowed hours: [9, 10, 21, 22]
Liveness check, timestamp:      Tue 16 Dec 2025, 15:51:05
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
*** Sleeping for: 1.5 hours @ 15:51:05
*** Skipping Updates. Current Hour: 17. Allowed hours: [9, 10, 21, 22]
*** Sleeping for: 1.1 hours @ 17:20:43
*** Skipping Updates. Current Hour: 18. Allowed hours: [9, 10, 21, 22]
*** Sleeping for: 1.3 hours @ 18:29:43
*** Skipping Updates. Current Hour: 19. Allowed hours: [9, 10, 21, 22]
*** Sleeping for: 1.1 hours @ 19:45:16
*** Skipping Updates. Current Hour: 20. Allowed hours: [9, 10, 21, 22]
*** Sleeping for: 1.4 hours @ 20:50:31
*** Fetching Updates. Current Hour: 22. Allowed hours: [9, 10, 21, 22]
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
* BeHuman: simulation start
* BeHuman #1: explore feed peek OK
* BeHuman #2: viewed own profile OK
* BeHuman: simulation stop

Timestamp:              Tue 16 Dec 2025, 22:18:14
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/misiektoja/instagram_monitor/pull/22 **Author:** [@tomballgithub](https://github.com/tomballgithub) **Created:** 12/16/2025 **Status:** ✅ Merged **Merged:** 12/18/2025 **Merged by:** [@misiektoja](https://github.com/misiektoja) **Base:** `dev` ← **Head:** `hours_allowed` --- ### 📝 Commits (4) - [`710c0b7`](https://github.com/misiektoja/instagram_monitor/commit/710c0b73fba83ee8a9c6453832f294a09fd903e1) Merge pull request #1 from misiektoja/main - [`3bc6003`](https://github.com/misiektoja/instagram_monitor/commit/3bc6003a226287f9b5e6b2cb782a83819203fe01) Adjust CHECK_POSTS_IN_HOURS_RANGE support to cover additional activity - [`853403f`](https://github.com/misiektoja/instagram_monitor/commit/853403f7d698eb59fc7368d9818bd20c77857294) Fix missing cur_h assignment - [`45f258d`](https://github.com/misiektoja/instagram_monitor/commit/45f258d730fdacef1310bd03888be287f743e292) Merge branch 'misiektoja:main' into hours_allowed ### 📊 Changes **1 file changed** (+418 additions, -406 deletions) <details> <summary>View changed files</summary> 📝 `instagram_monitor.py` (+418 -406) </details> ### 📄 Description CHECK_POSTS_IN_HOURS_RANGE is now used for all activities in the main loop. Added a VERBOSE configuration option. The indention of much of the main loop is difficult to look at in the Github diff tool. Beyond that, the actual changes are straightforward. Here is what the VERBOSE option shows: ``` *** Skipping Updates. Current Hour: 23. Allowed hours: [9, 10, 21, 22] *** Fetching Updates. Current Hour: 9. Allowed hours: [9, 10, 21, 22] ``` full example: ``` * BeHuman: simulation start * BeHuman #1: explore feed peek OK * BeHuman #2: viewed own profile OK * BeHuman #4: visited followee mia.bunnni OK * BeHuman: simulation stop Timestamp: Tue 16 Dec 2025, 10:48:48 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── *** Sleeping for: 1.5 hours @ 10:48:48 *** Skipping Updates. Current Hour: 12. Allowed hours: [9, 10, 21, 22] *** Sleeping for: 1.0 hours @ 12:16:50 *** Skipping Updates. Current Hour: 13. Allowed hours: [9, 10, 21, 22] *** Sleeping for: 1.2 hours @ 13:16:53 *** Skipping Updates. Current Hour: 14. Allowed hours: [9, 10, 21, 22] *** Sleeping for: 1.4 hours @ 14:29:31 *** Skipping Updates. Current Hour: 15. Allowed hours: [9, 10, 21, 22] Liveness check, timestamp: Tue 16 Dec 2025, 15:51:05 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── *** Sleeping for: 1.5 hours @ 15:51:05 *** Skipping Updates. Current Hour: 17. Allowed hours: [9, 10, 21, 22] *** Sleeping for: 1.1 hours @ 17:20:43 *** Skipping Updates. Current Hour: 18. Allowed hours: [9, 10, 21, 22] *** Sleeping for: 1.3 hours @ 18:29:43 *** Skipping Updates. Current Hour: 19. Allowed hours: [9, 10, 21, 22] *** Sleeping for: 1.1 hours @ 19:45:16 *** Skipping Updates. Current Hour: 20. Allowed hours: [9, 10, 21, 22] *** Sleeping for: 1.4 hours @ 20:50:31 *** Fetching Updates. Current Hour: 22. Allowed hours: [9, 10, 21, 22] ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── * BeHuman: simulation start * BeHuman #1: explore feed peek OK * BeHuman #2: viewed own profile OK * BeHuman: simulation stop Timestamp: Tue 16 Dec 2025, 22:18:14 ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:05:12 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/instagram_monitor#55
No description provided.