warp-beacon 2.7.19__tar.gz → 2.7.21__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.19/warp_beacon.egg-info → warp_beacon-2.7.21}/PKG-INFO +1 -1
- warp_beacon-2.7.21/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scheduler/instagram_human.py +4 -3
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/instagram/instagram.py +3 -1
- {warp_beacon-2.7.19 → warp_beacon-2.7.21/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.7.19/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/LICENSE +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/MANIFEST.in +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/README.md +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/assets/cc-group-black.png +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/assets/placeholder.gif +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/etc/.gitignore +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/etc/accounts.json +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/etc/proxies.json +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/etc/warp_beacon.conf +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/pyproject.toml +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/setup.cfg +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/setup.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/jobs/abstract.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scheduler/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scheduler/scheduler.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/account_selector.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/fail_handler.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/instagram/captcha.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/instagram/wb_instagrapi.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/link_resolver.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/utils.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/youtube/abstract.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/scraper/youtube/youtube.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/storage/mongo.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/caption_shortener.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/download_status.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/edit_message.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/progress_bar.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/progress_file_reader.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/types.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/uploader/__init__.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon/yt_auth.py +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.7.19 → warp_beacon-2.7.21}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -39,7 +39,7 @@ class InstagramHuman(object):
|
|
39
39
|
|
40
40
|
if media_id:
|
41
41
|
seen.append(str(media_id))
|
42
|
-
if random.random()
|
42
|
+
if random.random() > 0.8:
|
43
43
|
try:
|
44
44
|
#self.scrapler.cl.media_like(media_id)
|
45
45
|
self.scrapler.cl.media_comments(media_id)
|
@@ -76,7 +76,7 @@ class InstagramHuman(object):
|
|
76
76
|
try:
|
77
77
|
logging.info("Wathing story with pk '%s'", str(m.id))
|
78
78
|
seen.append(str(m.id))
|
79
|
-
if random.random() > 0.
|
79
|
+
if random.random() > 0.9:
|
80
80
|
explore_user = m.user
|
81
81
|
break
|
82
82
|
self.random_pause()
|
@@ -99,12 +99,13 @@ class InstagramHuman(object):
|
|
99
99
|
return
|
100
100
|
explore_user = None
|
101
101
|
seen = []
|
102
|
+
random.seed(time.time())
|
102
103
|
for m in media[:random.randint(1, len(media))]:
|
103
104
|
try:
|
104
105
|
logging.info("Watching content with pk '%s'", str(m.id))
|
105
106
|
seen.append(str(m.id))
|
106
107
|
logging.info("Watched content with id '%s'", str(m.id))
|
107
|
-
if random.random() > 0.
|
108
|
+
if random.random() > 0.9:
|
108
109
|
explore_user = m.user
|
109
110
|
break
|
110
111
|
self.random_pause()
|
@@ -196,7 +196,7 @@ class InstagramScraper(ScraperAbstract):
|
|
196
196
|
if "ProxyError" in msg:
|
197
197
|
raise BadProxy(msg)
|
198
198
|
logging.warning("Instagram read timeout! Retrying in 2 seconds ...")
|
199
|
-
logging.info("Your `IG_MAX_RETRIES` values is %d", max_retries)
|
199
|
+
logging.info("Your `IG_MAX_RETRIES` values is '%d'", max_retries)
|
200
200
|
logging.exception(e)
|
201
201
|
if max_retries <= retries:
|
202
202
|
raise TimeOut(extract_exception_message(e))
|
@@ -215,9 +215,11 @@ class InstagramScraper(ScraperAbstract):
|
|
215
215
|
relogin_success = self.cl.login(self.account["login"], self.account["password"], relogin=True)
|
216
216
|
if relogin_success:
|
217
217
|
self.safe_write_session()
|
218
|
+
logging.info("Successful relogin")
|
218
219
|
except Exception as exc:
|
219
220
|
logging.warning("Relogin failed!", exc_info=exc)
|
220
221
|
if not relogin_success:
|
222
|
+
logging.info("Fully logging into account from beginning ...")
|
221
223
|
old_session = self.cl.get_settings()
|
222
224
|
# change session id after relogin
|
223
225
|
self.client_session_id = self.acc_selector.generate_new_session_id()
|
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
|