warp-beacon 2.7.20__py3-none-any.whl → 2.7.22__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 +7 -2
- warp_beacon/scraper/instagram/instagram.py +3 -1
- {warp_beacon-2.7.20.dist-info → warp_beacon-2.7.22.dist-info}/METADATA +1 -1
- {warp_beacon-2.7.20.dist-info → warp_beacon-2.7.22.dist-info}/RECORD +9 -9
- {warp_beacon-2.7.20.dist-info → warp_beacon-2.7.22.dist-info}/WHEEL +0 -0
- {warp_beacon-2.7.20.dist-info → warp_beacon-2.7.22.dist-info}/entry_points.txt +0 -0
- {warp_beacon-2.7.20.dist-info → warp_beacon-2.7.22.dist-info}/licenses/LICENSE +0 -0
- {warp_beacon-2.7.20.dist-info → warp_beacon-2.7.22.dist-info}/top_level.txt +0 -0
warp_beacon/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "2.7.
|
1
|
+
__version__ = "2.7.22"
|
2
2
|
|
@@ -14,6 +14,7 @@ class InstagramHuman(object):
|
|
14
14
|
def __init__(self, scrapler: InstagramScraper) -> None:
|
15
15
|
self.scrapler = scrapler
|
16
16
|
self.operations_count = 0
|
17
|
+
self.was_profile_explore = False
|
17
18
|
|
18
19
|
def browse_timeline(self) -> Optional[dict]:
|
19
20
|
feed = None
|
@@ -76,7 +77,7 @@ class InstagramHuman(object):
|
|
76
77
|
try:
|
77
78
|
logging.info("Wathing story with pk '%s'", str(m.id))
|
78
79
|
seen.append(str(m.id))
|
79
|
-
if random.random() > 0.
|
80
|
+
if random.random() > 0.9:
|
80
81
|
explore_user = m.user
|
81
82
|
break
|
82
83
|
self.random_pause()
|
@@ -99,12 +100,13 @@ class InstagramHuman(object):
|
|
99
100
|
return
|
100
101
|
explore_user = None
|
101
102
|
seen = []
|
103
|
+
random.seed(time.time())
|
102
104
|
for m in media[:random.randint(1, len(media))]:
|
103
105
|
try:
|
104
106
|
logging.info("Watching content with pk '%s'", str(m.id))
|
105
107
|
seen.append(str(m.id))
|
106
108
|
logging.info("Watched content with id '%s'", str(m.id))
|
107
|
-
if random.random() > 0.
|
109
|
+
if random.random() > 0.9:
|
108
110
|
explore_user = m.user
|
109
111
|
break
|
110
112
|
self.random_pause()
|
@@ -282,7 +284,10 @@ class InstagramHuman(object):
|
|
282
284
|
|
283
285
|
def explore_profile(self, user: UserShort) -> None:
|
284
286
|
try:
|
287
|
+
if self.was_profile_explore:
|
288
|
+
return
|
285
289
|
logging.info("Exploring user profile '%s'", user.username)
|
290
|
+
self.was_profile_explore = True
|
286
291
|
user_id = self.scrapler.download_hndlr(self.scrapler.cl.user_id_from_username, user.username)
|
287
292
|
self.operations_count += 1
|
288
293
|
if user_id:
|
@@ -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()
|
@@ -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=fEXKUWyG_AKWidBWyK5xft-DAaovphe4hXco-YafefM,24
|
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=HiTZXEWJSKNZepB35Xq40IjzjDllaLQL5O4KnMkObig,12296
|
24
24
|
warp_beacon/scheduler/scheduler.py,sha256=Bf4sGXjX75Dox3q-yzUHhagtzUAj3hl5GzfnZya-_io,4995
|
25
25
|
warp_beacon/scraper/__init__.py,sha256=gQOcBvZNnlxt0Rbbrkl4PLh7eQe2y3igJbx-87hAvrA,20249
|
26
26
|
warp_beacon/scraper/abstract.py,sha256=pWbaTu-gDZgi-iFjqMR_uGzPl5KLv-4gTdJ9w6cD4sk,3802
|
@@ -31,7 +31,7 @@ warp_beacon/scraper/link_resolver.py,sha256=Rc9ZuMyOo3iPywDHwjngy-WRQ2SXhJwxcg-5
|
|
31
31
|
warp_beacon/scraper/utils.py,sha256=yL-nrdCOAXNZgmIFPurIYFHfPsxHDl8pqif6BYKrzJI,1218
|
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
|
-
warp_beacon/scraper/instagram/instagram.py,sha256=
|
34
|
+
warp_beacon/scraper/instagram/instagram.py,sha256=1U6uupfFQZSEQQxg3nEq3WR1P9Bv1d6sfUYjoiIJMj4,18740
|
35
35
|
warp_beacon/scraper/instagram/wb_instagrapi.py,sha256=DvGehtiaMfNYV9MnAngry1wxQwGdRSPBQgFJDPdRJ7w,8854
|
36
36
|
warp_beacon/scraper/youtube/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
37
37
|
warp_beacon/scraper/youtube/abstract.py,sha256=-H1AFMJD9w1GmVDTuJKGsFTrgrctdRcgTTrXM2OhLjE,16236
|
@@ -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=S1N_JbHM_ExiM5tS0CeYKWIlvaJMlyq85TQNbK_GVds,5029
|
54
54
|
warp_beacon/uploader/__init__.py,sha256=ewvR60k9osJxw_kb5U-TlZkCGR_574biq3w_aR1tjIU,5689
|
55
|
-
warp_beacon-2.7.
|
56
|
-
warp_beacon-2.7.
|
57
|
-
warp_beacon-2.7.
|
58
|
-
warp_beacon-2.7.
|
59
|
-
warp_beacon-2.7.
|
60
|
-
warp_beacon-2.7.
|
55
|
+
warp_beacon-2.7.22.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
56
|
+
warp_beacon-2.7.22.dist-info/METADATA,sha256=ub1PlWUw-l0Q5tlkl_NORewPyL2D9FV-wFr889dzKl8,23215
|
57
|
+
warp_beacon-2.7.22.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
58
|
+
warp_beacon-2.7.22.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
|
59
|
+
warp_beacon-2.7.22.dist-info/top_level.txt,sha256=5YQRN46STNg81V_3jdzZ6bftkMxhe1hTPSFvJugDu84,1405
|
60
|
+
warp_beacon-2.7.22.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|