warp-beacon 2.6.99__py3-none-any.whl → 2.7.0__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/instagram_human.py +2 -2
- warp_beacon/scraper/utils.py +1 -1
- warp_beacon/telegram/bot.py +2 -1
- {warp_beacon-2.6.99.dist-info → warp_beacon-2.7.0.dist-info}/METADATA +1 -1
- {warp_beacon-2.6.99.dist-info → warp_beacon-2.7.0.dist-info}/RECORD +10 -10
- {warp_beacon-2.6.99.dist-info → warp_beacon-2.7.0.dist-info}/WHEEL +0 -0
- {warp_beacon-2.6.99.dist-info → warp_beacon-2.7.0.dist-info}/entry_points.txt +0 -0
- {warp_beacon-2.6.99.dist-info → warp_beacon-2.7.0.dist-info}/licenses/LICENSE +0 -0
- {warp_beacon-2.6.99.dist-info → warp_beacon-2.7.0.dist-info}/top_level.txt +0 -0
warp_beacon/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "2.
|
1
|
+
__version__ = "2.7.0"
|
2
2
|
|
@@ -39,15 +39,15 @@ class InstagramHuman(object):
|
|
39
39
|
|
40
40
|
if media_id:
|
41
41
|
seen.append(str(media_id))
|
42
|
-
if random.random() < 0.
|
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)
|
46
46
|
self.operations_count += 1
|
47
|
+
self.random_pause(short=True)
|
47
48
|
except Exception as e:
|
48
49
|
logging.warning("Failed to see comments to media '%s'", media_id, exc_info=e)
|
49
50
|
self.random_pause()
|
50
|
-
|
51
51
|
if seen:
|
52
52
|
try:
|
53
53
|
self.scrapler.cl.media_seen(seen)
|
warp_beacon/scraper/utils.py
CHANGED
@@ -4,7 +4,7 @@ from fake_useragent import UserAgent
|
|
4
4
|
|
5
5
|
class ScraperUtils(object):
|
6
6
|
@staticmethod
|
7
|
-
def get_ua_dict(browsers: list = ['Facebook', 'Android'], platforms: list = ['mobile', 'tablet'], os: list =['Android'
|
7
|
+
def get_ua_dict(browsers: list = ['Facebook', 'Android'], platforms: list = ['mobile', 'tablet'], os: list =['Android']) -> dict:
|
8
8
|
random_client = None
|
9
9
|
try:
|
10
10
|
ua = UserAgent(browsers=browsers, platforms=platforms, os=os)
|
warp_beacon/telegram/bot.py
CHANGED
@@ -64,7 +64,8 @@ class Bot(object):
|
|
64
64
|
api_id=tg_api_id,
|
65
65
|
api_hash=tg_api_hash,
|
66
66
|
workdir='/var/warp_beacon',
|
67
|
-
workers=int(os.environ.get("TG_WORKERS_POOL_SIZE", default=workers_amount))
|
67
|
+
workers=int(os.environ.get("TG_WORKERS_POOL_SIZE", default=workers_amount)),
|
68
|
+
ipv6=os.environ.get("TG_IPV6", default="false").lower() in ("1", "true", "yes")
|
68
69
|
)
|
69
70
|
|
70
71
|
self.editor = EditMessage(self.client)
|
@@ -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=6s0jET9wkushtngvgSWzky_QI_PNENpNtC3_M0St9p8,23
|
8
8
|
warp_beacon/warp_beacon.py,sha256=ADCR30uGXIsDrt9WoiI9Ghu2QtWs0qZIK6x3pQKM_B4,1109
|
9
9
|
warp_beacon/yt_auth.py,sha256=GUTKqYr_tzDC-07Lx_ahWXSag8EyLxXBUnQbDBIkEmk,6022
|
10
10
|
warp_beacon/compress/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -20,7 +20,7 @@ warp_beacon/mediainfo/audio.py,sha256=ous88kwQj4bDIChN5wnGil5LqTs0IQHH0d-nyrL0-Z
|
|
20
20
|
warp_beacon/mediainfo/silencer.py,sha256=qxMuViOoVwUYb60uCVvqHiGrqByR1_4_rqMT-XdMkwc,1813
|
21
21
|
warp_beacon/mediainfo/video.py,sha256=UBZrhTN5IDI-aYu6tsJEILo9nFkjHhkldGVFmvV7tEI,2480
|
22
22
|
warp_beacon/scheduler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
|
-
warp_beacon/scheduler/instagram_human.py,sha256=
|
23
|
+
warp_beacon/scheduler/instagram_human.py,sha256=gqayCcn0xRYSNSFxeSpCGhBJyIwNAbk4Fnt1SCd61iA,11259
|
24
24
|
warp_beacon/scheduler/scheduler.py,sha256=Bf4sGXjX75Dox3q-yzUHhagtzUAj3hl5GzfnZya-_io,4995
|
25
25
|
warp_beacon/scraper/__init__.py,sha256=k3M0X_m5f7b_DbBB3Ahk62ewEYr5AkqJL0PJXf0G4mI,20140
|
26
26
|
warp_beacon/scraper/abstract.py,sha256=pWbaTu-gDZgi-iFjqMR_uGzPl5KLv-4gTdJ9w6cD4sk,3802
|
@@ -28,7 +28,7 @@ warp_beacon/scraper/account_selector.py,sha256=vxIVesGPQKVtL3uSn5CFlZB1eAYowUN7l
|
|
28
28
|
warp_beacon/scraper/exceptions.py,sha256=EKwoF0oH2xZWbNU-v8DOaWK5skKwa3s1yTIBdlcfMpc,1452
|
29
29
|
warp_beacon/scraper/fail_handler.py,sha256=zcPK3ZVEsu6JmHYcWP7L3naTRK3gWFVRkpP84VBOtJs,964
|
30
30
|
warp_beacon/scraper/link_resolver.py,sha256=Rc9ZuMyOo3iPywDHwjngy-WRQ2SXhJwxcg-5ripx7tM,2447
|
31
|
-
warp_beacon/scraper/utils.py,sha256=
|
31
|
+
warp_beacon/scraper/utils.py,sha256=2ixy3ln-N7OXSqO2bvYw1407WuR-xZBX4l3lyteCTm4,1261
|
32
32
|
warp_beacon/scraper/instagram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
33
33
|
warp_beacon/scraper/instagram/captcha.py,sha256=9UYziuqB3Tsat_ET6ex-cnZDbi6yCnsXHSpmE8MuUHk,4651
|
34
34
|
warp_beacon/scraper/instagram/instagram.py,sha256=xDjKJa_TdXC-Xk8ji5oGKQmo7LrpRNSshLcuKuFJrCM,17863
|
@@ -41,7 +41,7 @@ warp_beacon/scraper/youtube/youtube.py,sha256=x9v9p1coA9TvBhxjNAofGu4UBkAEdYPE2e
|
|
41
41
|
warp_beacon/storage/__init__.py,sha256=0Vajd0oITKJfu2vmNx5uQSt3-L6vwIvUYWJo8HZCjco,3398
|
42
42
|
warp_beacon/storage/mongo.py,sha256=qC4ZiO8XXvPnP0rJwz4CJx42pqFsyAjCiW10W5QdT6E,527
|
43
43
|
warp_beacon/telegram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
44
|
-
warp_beacon/telegram/bot.py,sha256=
|
44
|
+
warp_beacon/telegram/bot.py,sha256=HJxouCxc85EzC8lTaqnP-5agvkdvlxKR6Etg5LjYcoA,19212
|
45
45
|
warp_beacon/telegram/caption_shortener.py,sha256=EnguNCF52ne7y4P-iJAbI6K3sqoJqJbND_dX5Fhwkv0,1549
|
46
46
|
warp_beacon/telegram/download_status.py,sha256=JNevX0VQh39fX98fjM9j_nm0Ribj8f3tfa6kxpeNapQ,1484
|
47
47
|
warp_beacon/telegram/edit_message.py,sha256=6DX8eJV70MG_b79WbuJG55qLBs66boElzYdCr8zpMeI,5380
|
@@ -52,9 +52,9 @@ warp_beacon/telegram/progress_file_reader.py,sha256=e3equyNKlKs764AD-iE9QRsh3YDH
|
|
52
52
|
warp_beacon/telegram/types.py,sha256=Kvdng6uCF1HRoqQgGW1ZYYPJoVuYkFb-LDvMBbW5Hjk,89
|
53
53
|
warp_beacon/telegram/utils.py,sha256=1Lq67aRylVJzbwSyvAgjPAGjJZFATkICvAj3TJGuJiM,4635
|
54
54
|
warp_beacon/uploader/__init__.py,sha256=j3qcuKhpchseZLGzSsSiogqe6WdMbkK8d3I-ConhNRs,5687
|
55
|
-
warp_beacon-2.
|
56
|
-
warp_beacon-2.
|
57
|
-
warp_beacon-2.
|
58
|
-
warp_beacon-2.
|
59
|
-
warp_beacon-2.
|
60
|
-
warp_beacon-2.
|
55
|
+
warp_beacon-2.7.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
56
|
+
warp_beacon-2.7.0.dist-info/METADATA,sha256=jyntJ_4RutJix5DrP0jCa_o5Vce99tC5_wzfik4r5pU,23214
|
57
|
+
warp_beacon-2.7.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
58
|
+
warp_beacon-2.7.0.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
|
59
|
+
warp_beacon-2.7.0.dist-info/top_level.txt,sha256=5YQRN46STNg81V_3jdzZ6bftkMxhe1hTPSFvJugDu84,1405
|
60
|
+
warp_beacon-2.7.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|