warp-beacon 2.6.27__py3-none-any.whl → 2.6.29__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.
@@ -1,2 +1,2 @@
1
- __version__ = "2.6.27"
1
+ __version__ = "2.6.29"
2
2
 
@@ -23,7 +23,7 @@ class InstagramHuman(object):
23
23
  content = self.scrapler.cl.media_info(m.pk)
24
24
  logging.info("Watched content with id '%s'", str(content.pk))
25
25
  self.operations_count += 1
26
- time.sleep(random.uniform(2, 10))
26
+ time.sleep(random.uniform(8, 30))
27
27
  except Exception as e:
28
28
  logging.warning("Exception while watching content")
29
29
  logging.exception(e)
@@ -138,7 +138,7 @@ class AsyncDownloader(object):
138
138
  from warp_beacon.scraper.instagram.instagram import InstagramScraper
139
139
  actor = InstagramScraper(selector.get_current(), proxy)
140
140
  selector.inc_ig_request_count()
141
- if selector.get_ig_request_count() >= int(os.environ.get("IG_REQUESTS_PER_ACCOUNT", default="10")):
141
+ if not job.scroll_content and selector.get_ig_request_count() >= int(os.environ.get("IG_REQUESTS_PER_ACCOUNT", default="10")):
142
142
  logging.info("The account request limit has been reached. Selecting the next account.")
143
143
  selector.reset_ig_request_count()
144
144
  selector.next()
@@ -27,8 +27,8 @@ class ScraperAbstract(ABC):
27
27
  self.account_index = account[0]
28
28
  self.account = account[1]
29
29
  self.proxy = proxy
30
- if self.account.get("force_ipv6", False):
31
- self.force_ipv6()
30
+ #if self.account.get("force_ipv6", False):
31
+ # self.force_ipv6()
32
32
 
33
33
  #def __del__(self) -> None:
34
34
  # if self.account.get("force_ipv6", False):
@@ -95,6 +95,7 @@ class ScraperAbstract(ABC):
95
95
  urllib3_cn.allowed_gai_family = allowed_gai_family
96
96
 
97
97
  def restore_gai(self) -> None:
98
+ return
98
99
  with self._gai_lock:
99
100
  if self.original_gai_family:
100
101
  logging.info("Restoring normal IP stack ...")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: warp_beacon
3
- Version: 2.6.27
3
+ Version: 2.6.29
4
4
  Summary: Telegram bot for expanding external media links
5
5
  Home-page: https://github.com/sb0y/warp_beacon
6
6
  Author: Andrey Bagrintsev
@@ -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=WpQPZiXwhSHgVCVhWKVdZPsvwyDNlSWuR6rPxBdG3bM,24
7
+ warp_beacon/__version__.py,sha256=0Kms1PwfWr2y8zUrFvzCRzV1ef9dKAMdxfI_QHpo2e0,24
8
8
  warp_beacon/warp_beacon.py,sha256=ED43vNzdjDUJ_9qLCbri0bjWLWEJ69BENGj9i7G6AvM,342
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,10 +20,10 @@ 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=CKTDGIGrcIvqhzr9nTHcf3nHNAXEFOSsJa3-a0oaOec,7381
23
+ warp_beacon/scheduler/instagram_human.py,sha256=-3_K_XRs6qip06Rlzsq86wHGGsaisHRqIL-086jUUPk,7381
24
24
  warp_beacon/scheduler/scheduler.py,sha256=9OCh7Ta4wY_aTHGAOOZmaKXg56Ftx1N_aV1g6E3ZLKA,4941
25
- warp_beacon/scraper/__init__.py,sha256=QH4FuBmIXuVgv45r1loc_teR4iCUNaUZ2vGY3CG-n2k,19795
26
- warp_beacon/scraper/abstract.py,sha256=8n24kJVAZcsl6wHzpCHvdhO2UXLMnBsN6B4ymcZ2h70,2974
25
+ warp_beacon/scraper/__init__.py,sha256=y6_26l18Bdrms9jeW1mJipmj6lKCpPQNZlieoXFnqLc,19822
26
+ warp_beacon/scraper/abstract.py,sha256=yP76ae9U73LYW2lDN6XWkXDkWX1h2UVOrkqv0Sqpu2Y,2985
27
27
  warp_beacon/scraper/account_selector.py,sha256=nFqN-fPWxx7H7tOcdweZpGuv2TVN9isnziqb-HXsSmc,7888
28
28
  warp_beacon/scraper/exceptions.py,sha256=EKwoF0oH2xZWbNU-v8DOaWK5skKwa3s1yTIBdlcfMpc,1452
29
29
  warp_beacon/scraper/fail_handler.py,sha256=zcPK3ZVEsu6JmHYcWP7L3naTRK3gWFVRkpP84VBOtJs,964
@@ -45,9 +45,9 @@ warp_beacon/telegram/handlers.py,sha256=uvR6TPHSqdSxigp3wR-ewiE6t3TvVcbVLVcYGwkg
45
45
  warp_beacon/telegram/placeholder_message.py,sha256=wN9-BRiyrtHG-EvXtZkGJHt2CX71munQ57ITttjt0mw,6400
46
46
  warp_beacon/telegram/utils.py,sha256=1Lq67aRylVJzbwSyvAgjPAGjJZFATkICvAj3TJGuJiM,4635
47
47
  warp_beacon/uploader/__init__.py,sha256=j3qcuKhpchseZLGzSsSiogqe6WdMbkK8d3I-ConhNRs,5687
48
- warp_beacon-2.6.27.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
49
- warp_beacon-2.6.27.dist-info/METADATA,sha256=1ahvdtT9k_QJ6k5chtwbouLOARu9wgDW5uEfwQhipMw,22706
50
- warp_beacon-2.6.27.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
51
- warp_beacon-2.6.27.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
52
- warp_beacon-2.6.27.dist-info/top_level.txt,sha256=4ML0-mXsezLtRXyxQUntL_ktc5HX9npTeQWzvV8kFvA,1161
53
- warp_beacon-2.6.27.dist-info/RECORD,,
48
+ warp_beacon-2.6.29.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
49
+ warp_beacon-2.6.29.dist-info/METADATA,sha256=fbqTsXUi1ZhwbQKnXY-TPvZ2dy_TfgaMfQvYKvN44lQ,22706
50
+ warp_beacon-2.6.29.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
51
+ warp_beacon-2.6.29.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
52
+ warp_beacon-2.6.29.dist-info/top_level.txt,sha256=4ML0-mXsezLtRXyxQUntL_ktc5HX9npTeQWzvV8kFvA,1161
53
+ warp_beacon-2.6.29.dist-info/RECORD,,