warp-beacon 2.7.31__tar.gz → 2.7.32__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {warp_beacon-2.7.31/warp_beacon.egg-info → warp_beacon-2.7.32}/PKG-INFO +1 -1
- warp_beacon-2.7.32/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scheduler/instagram_human.py +17 -7
- {warp_beacon-2.7.31 → warp_beacon-2.7.32/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.7.31/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/LICENSE +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/MANIFEST.in +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/README.md +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/assets/cc-group-black.png +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/assets/placeholder.gif +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/etc/.gitignore +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/etc/accounts.json +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/etc/proxies.json +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/etc/warp_beacon.conf +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/pyproject.toml +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/setup.cfg +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/setup.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/jobs/abstract.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scheduler/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scheduler/scheduler.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/account_selector.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/fail_handler.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/instagram/captcha.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/instagram/instagram.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/instagram/wb_instagrapi.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/link_resolver.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/utils.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/youtube/abstract.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/scraper/youtube/youtube.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/storage/mongo.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/caption_shortener.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/download_status.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/edit_message.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/progress_bar.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/progress_file_reader.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/types.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/uploader/__init__.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon/yt_auth.py +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.7.31 → warp_beacon-2.7.32}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -5,7 +5,7 @@ from datetime import datetime
|
|
5
5
|
|
6
6
|
import logging
|
7
7
|
|
8
|
-
from instagrapi.types import UserShort
|
8
|
+
from instagrapi.types import UserShort, Story
|
9
9
|
from warp_beacon.scraper.instagram.instagram import InstagramScraper
|
10
10
|
|
11
11
|
class InstagramHuman(object):
|
@@ -69,7 +69,7 @@ class InstagramHuman(object):
|
|
69
69
|
|
70
70
|
def watch_stories(self) -> None:
|
71
71
|
logging.info("Simulating stories watch ...")
|
72
|
-
stories = []
|
72
|
+
stories: list[Story] = []
|
73
73
|
try:
|
74
74
|
raw_tray = self.reel_tray_feed_if_needed()
|
75
75
|
if not raw_tray:
|
@@ -77,16 +77,17 @@ class InstagramHuman(object):
|
|
77
77
|
return
|
78
78
|
#logging.info("raw_tray: %s", str(raw_tray))
|
79
79
|
tray = raw_tray.get("tray", [])
|
80
|
-
if
|
80
|
+
filtered_tray = [item for item in tray if item.get("seen", 0) == 0]
|
81
|
+
if filtered_tray:
|
81
82
|
reels_tray = []
|
82
83
|
target_len = random.randint(1, 5)
|
83
|
-
for el in
|
84
|
+
for el in filtered_tray[:target_len]:
|
84
85
|
user = el["user"]
|
85
86
|
user_id = user["pk"]
|
86
|
-
|
87
|
-
reels_tray.append({"user_id": user_id})
|
87
|
+
reels_tray.append({"user_id": user_id})
|
88
88
|
|
89
89
|
for el in reels_tray:
|
90
|
+
# amount?
|
90
91
|
_stories = self.scrapler.download_hndlr(self.scrapler.cl.user_stories, el["user_id"])
|
91
92
|
self.operations_count += 1
|
92
93
|
if _stories:
|
@@ -106,7 +107,16 @@ class InstagramHuman(object):
|
|
106
107
|
explore_user = m.user
|
107
108
|
self.operations_count += 1
|
108
109
|
break
|
109
|
-
|
110
|
+
pause = 0.0
|
111
|
+
if m.media_type == 2:
|
112
|
+
pause = m.video_duration or random.uniform(2, 20)
|
113
|
+
elif m.media_type == 8:
|
114
|
+
pause = random.uniform(2, 31)
|
115
|
+
else: # img, etc.
|
116
|
+
pause = random.uniform(2, 14)
|
117
|
+
logging.info("Pause for '%.2f' sec ...", round(pause, 2))
|
118
|
+
time.sleep(pause)
|
119
|
+
#self.random_pause()
|
110
120
|
|
111
121
|
if seen:
|
112
122
|
self.scrapler.download_hndlr(self.scrapler.cl.media_seen, seen)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|