warp-beacon 2.3.48__py3-none-any.whl → 2.3.50__py3-none-any.whl
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/__version__.py +1 -1
- warp_beacon/scheduler/scheduler.py +4 -0
- warp_beacon/scraper/__init__.py +6 -4
- warp_beacon/scraper/instagram/instagram.py +2 -0
- {warp_beacon-2.3.48.dist-info → warp_beacon-2.3.50.dist-info}/METADATA +1 -1
- {warp_beacon-2.3.48.dist-info → warp_beacon-2.3.50.dist-info}/RECORD +10 -10
- {warp_beacon-2.3.48.dist-info → warp_beacon-2.3.50.dist-info}/WHEEL +0 -0
- {warp_beacon-2.3.48.dist-info → warp_beacon-2.3.50.dist-info}/entry_points.txt +0 -0
- {warp_beacon-2.3.48.dist-info → warp_beacon-2.3.50.dist-info}/licenses/LICENSE +0 -0
- {warp_beacon-2.3.48.dist-info → warp_beacon-2.3.50.dist-info}/top_level.txt +0 -0
warp_beacon/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "2.3.
|
1
|
+
__version__ = "2.3.50"
|
2
2
|
|
@@ -37,6 +37,10 @@ class IGScheduler(object):
|
|
37
37
|
|
38
38
|
def load_yt_sessions(self) -> None:
|
39
39
|
try:
|
40
|
+
# old versions migration
|
41
|
+
if not "yt_sess_exp" in self.state:
|
42
|
+
self.state["yt_sess_exp"] = []
|
43
|
+
|
40
44
|
for f in os.listdir(self.yt_sessions_dir):
|
41
45
|
if f.startswith("yt_session") and f.endswith(".json"):
|
42
46
|
yt_sess_file = f"{self.yt_sessions_dir}/{f}"
|
warp_beacon/scraper/__init__.py
CHANGED
@@ -275,13 +275,15 @@ class AsyncDownloader(object):
|
|
275
275
|
self.job_queue.put(job)
|
276
276
|
break
|
277
277
|
self.send_message_to_admin(
|
278
|
-
f"Task <code>{job.job_id}</code> failed. URL:
|
279
|
-
f"Exception:\n<pre code=\"python\"
|
278
|
+
f"Task <code>{job.job_id}</code> failed. URL: {job.url}. Reason: '<b>UnknownError</b>'."
|
279
|
+
f"Exception:\n<pre code=\"python\">{exception_msg}\n</pre>"
|
280
280
|
)
|
281
281
|
self.uploader.queue_task(job.to_upload_job(
|
282
282
|
job_failed=True,
|
283
|
-
job_failed_msg="
|
284
|
-
|
283
|
+
job_failed_msg=("Unknown error occured. Please <a href=\"https://github.com/sb0y/warp_beacon/issues\">create issue</a> with service logs.\n",
|
284
|
+
f"Task <code>{job.job_id}</code> failed. URL: {job.url}. Reason: '<b>UnknownError</b>'.\n",
|
285
|
+
f"Exception:\n<pre code=\"python\">{exception_msg}\n</pre>")
|
286
|
+
))
|
285
287
|
break
|
286
288
|
|
287
289
|
if items:
|
@@ -167,6 +167,8 @@ class InstagramScraper(ScraperAbstract):
|
|
167
167
|
os.unlink(self.inst_session_file)
|
168
168
|
time.sleep(5)
|
169
169
|
self.load_session()
|
170
|
+
except AssertionError as e:
|
171
|
+
raise IGRateLimitOccurred("IG rate limit occurred")
|
170
172
|
except (socket.timeout,
|
171
173
|
ssl.SSLError,
|
172
174
|
requests.exceptions.ConnectionError,
|
@@ -4,7 +4,7 @@ var/warp_beacon/accounts.json,sha256=OsXdncs6h88xrF_AP6_WDCK1waGBn9SR-uYdIeK37GM
|
|
4
4
|
var/warp_beacon/placeholder.gif,sha256=cE5CGJVaop4Sx21zx6j4AyoHU0ncmvQuS2o6hJfEH88,6064
|
5
5
|
var/warp_beacon/proxies.json,sha256=VnjlQDXumOEq72ZFjbh6IqHS1TEHqn8HPYAZqWCeSIA,95
|
6
6
|
warp_beacon/__init__.py,sha256=_rThNODmz0nDp_n4mWo_HKaNFE5jk1_7cRhHyYaencI,163
|
7
|
-
warp_beacon/__version__.py,sha256=
|
7
|
+
warp_beacon/__version__.py,sha256=y8JRICAnmgUTv7b4LAieXIpjmtCqdTVaif1BXy2qHMU,24
|
8
8
|
warp_beacon/warp_beacon.py,sha256=7KEtZDj-pdhtl6m-zFLsSojs1ZR4o7L0xbqtdmYPvfE,342
|
9
9
|
warp_beacon/compress/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
warp_beacon/compress/video.py,sha256=_PDMVYCyzLYxHv1uZmmzGcG_8rjaZr7BTXsXTTy_oS4,2846
|
@@ -20,15 +20,15 @@ warp_beacon/mediainfo/silencer.py,sha256=qxMuViOoVwUYb60uCVvqHiGrqByR1_4_rqMT-Xd
|
|
20
20
|
warp_beacon/mediainfo/video.py,sha256=UBZrhTN5IDI-aYu6tsJEILo9nFkjHhkldGVFmvV7tEI,2480
|
21
21
|
warp_beacon/scheduler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
warp_beacon/scheduler/instagram_human.py,sha256=GRzryMWws4ibJZ_gPGn_Y2I2plcPIVgMWK3Yubqywa0,5020
|
23
|
-
warp_beacon/scheduler/scheduler.py,sha256=
|
24
|
-
warp_beacon/scraper/__init__.py,sha256=
|
23
|
+
warp_beacon/scheduler/scheduler.py,sha256=FPSrR1Z6lWbF1aCAMU2rRYCy1w4zdZ8Q4e7YWQE-Ahk,4041
|
24
|
+
warp_beacon/scraper/__init__.py,sha256=bNZI9YBKQB4UyxEjethenXjvp9g1RrWfYgOyepH4O_U,17356
|
25
25
|
warp_beacon/scraper/abstract.py,sha256=28a0aBKZpi8IKptLWdB6RuVbOkrUbrhT7LSZX7QRQtg,2725
|
26
26
|
warp_beacon/scraper/account_selector.py,sha256=HSfmi5H73aWYTjDa8GErCCQpTwWtDLBw92Q-I8TZilg,6282
|
27
27
|
warp_beacon/scraper/exceptions.py,sha256=L4UCZqDOLKu5-TPUcTErIbNDLrAQJghkMaPqzTfsm1g,1376
|
28
28
|
warp_beacon/scraper/fail_handler.py,sha256=_blvckfTZ4xWVancQKVRXH5ClKGwfrBxMwvXIFZh1qA,975
|
29
29
|
warp_beacon/scraper/link_resolver.py,sha256=Rc9ZuMyOo3iPywDHwjngy-WRQ2SXhJwxcg-5ripx7tM,2447
|
30
30
|
warp_beacon/scraper/instagram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
31
|
-
warp_beacon/scraper/instagram/instagram.py,sha256=
|
31
|
+
warp_beacon/scraper/instagram/instagram.py,sha256=27065cZ8YAHvUCmSWerKew7Agyw25YtPU3i9rOQxK_0,13902
|
32
32
|
warp_beacon/scraper/youtube/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
33
|
warp_beacon/scraper/youtube/abstract.py,sha256=cO40GXICfHussKa-yySvYVwnONG9FYYa9n-ft-rh4y4,11798
|
34
34
|
warp_beacon/scraper/youtube/music.py,sha256=-R6Iys8IpglH5UL7F640UQ3ieYHitvGXA0A2GhSemVA,2927
|
@@ -43,9 +43,9 @@ warp_beacon/telegram/handlers.py,sha256=XXIfdV_RCj7tyZMPXchuKmGoDdweOaR08ADDaBPW
|
|
43
43
|
warp_beacon/telegram/placeholder_message.py,sha256=wN9-BRiyrtHG-EvXtZkGJHt2CX71munQ57ITttjt0mw,6400
|
44
44
|
warp_beacon/telegram/utils.py,sha256=9uebX53G16mV7ER7WgfdWBLFHHw14S8HBt9URrIskg0,4440
|
45
45
|
warp_beacon/uploader/__init__.py,sha256=E9rlZIf7xlQz6MutMOwJ8S5Vm2uheR5nv23Kv8duRQg,5427
|
46
|
-
warp_beacon-2.3.
|
47
|
-
warp_beacon-2.3.
|
48
|
-
warp_beacon-2.3.
|
49
|
-
warp_beacon-2.3.
|
50
|
-
warp_beacon-2.3.
|
51
|
-
warp_beacon-2.3.
|
46
|
+
warp_beacon-2.3.50.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
47
|
+
warp_beacon-2.3.50.dist-info/METADATA,sha256=-o9kJ9gadfV5LiLlOFfNsYD1udqkLRW2QWoVnVH5_h4,22626
|
48
|
+
warp_beacon-2.3.50.dist-info/WHEEL,sha256=DK49LOLCYiurdXXOXwGJm6U4DkHkg4lcxjhqwRa0CP4,91
|
49
|
+
warp_beacon-2.3.50.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
|
50
|
+
warp_beacon-2.3.50.dist-info/top_level.txt,sha256=qGjHVVfyf6lTmbdSA-fQq0rHS1YVS4HoJT3rag5xgPE,1141
|
51
|
+
warp_beacon-2.3.50.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|