warp-beacon 2.3.38__py3-none-any.whl → 2.3.39__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.3.38"
1
+ __version__ = "2.3.39"
2
2
 
@@ -80,6 +80,7 @@ class InstagramHuman(object):
80
80
  if random.random() > 0.6:
81
81
  logging.info("Simulation profile view ...")
82
82
  self.profile_view()
83
+ self.random_pause()
83
84
  except Exception as e:
84
85
  logging.warning("Error in evening_routine")
85
86
  logging.exception(e)
@@ -101,7 +102,9 @@ class InstagramHuman(object):
101
102
 
102
103
  def profile_view(self) -> None:
103
104
  try:
105
+ logging.info("profile_view ...")
104
106
  my_user_id = self.scrapler.cl.user_id
107
+ logging.info("user_following ...")
105
108
  friends = list(self.scrapler.download_hndlr(self.scrapler.cl.user_following, my_user_id, amount=random.randint(5, 50)).values())
106
109
  time.sleep(random.uniform(2, 5))
107
110
  if not friends:
@@ -111,15 +114,18 @@ class InstagramHuman(object):
111
114
  target_user_id = ""
112
115
  if isinstance(random_friend, UserShort):
113
116
  target_user_id = random_friend.pk
117
+ logging.info("user_info with target_user_id = '%s' ...", target_user_id)
114
118
  self.scrapler.download_hndlr(self.scrapler.cl.user_info, target_user_id)
115
119
  time.sleep(random.uniform(2, 5))
116
120
  elif isinstance(random_friend, str):
117
121
  target_user_id = self.scrapler.download_hndlr(self.scrapler.cl.user_id_from_username, random_friend)
122
+ logging.info("user_info with target_user_id = '%s' ...", target_user_id)
118
123
  self.scrapler.download_hndlr(self.scrapler.cl.user_info, target_user_id)
119
124
 
120
125
  time.sleep(random.uniform(2, 5))
121
126
 
122
127
  if random.random() > 0.7:
128
+ logging.info("user_medias with target_user_id = '%s' ...", target_user_id)
123
129
  self.scrapler.download_hndlr(self.scrapler.cl.user_medias, target_user_id, amount=random.randint(1, 5))
124
130
 
125
131
  self.random_pause()
@@ -38,6 +38,8 @@ class IGScheduler(object):
38
38
  if os.path.exists(self.state_file):
39
39
  with open(self.state_file, 'r', encoding="utf-8") as f:
40
40
  self.state = json.loads(f.read())
41
+ if "remaining" in self.state:
42
+ logging.info("Next scheduler activity in '%s' seconds", self.state["remaining"])
41
43
  except Exception as e:
42
44
  logging.error("Failed to load Scheduler state!")
43
45
  logging.exception(e)
@@ -89,7 +91,7 @@ class IGScheduler(object):
89
91
  self.save_state()
90
92
 
91
93
  if self.state["remaining"] <= 0:
92
- self.state["remaining"] = randrange(4100, 22300)
94
+ self.state["remaining"] = randrange(4292, 8623)
93
95
  logging.info("Next scheduler activity in '%s' seconds", self.state["remaining"])
94
96
 
95
97
  start_time = time.time()
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: warp_beacon
3
- Version: 2.3.38
3
+ Version: 2.3.39
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
@@ -239,8 +239,10 @@ Requires-Dist: instagrapi==2.0.0
239
239
  Requires-Dist: bs4
240
240
  Dynamic: author
241
241
  Dynamic: home-page
242
+ Dynamic: license-file
242
243
 
243
244
  # warp_beacon [![Upload Python Package](https://github.com/sb0y/warp_beacon/actions/workflows/python-publish.yml/badge.svg)](https://github.com/sb0y/warp_beacon/actions/workflows/python-publish.yml) [![Docker Image CI](https://github.com/sb0y/warp_beacon/actions/workflows/docker-image.yml/badge.svg)](https://github.com/sb0y/warp_beacon/actions/workflows/docker-image.yml) [![Build DEB package](https://github.com/sb0y/warp_beacon/actions/workflows/build-deb.yml/badge.svg)](https://github.com/sb0y/warp_beacon/actions/workflows/build-deb.yml)
245
+ > because content should travel freely
244
246
 
245
247
  Telegram bot for external social networks media links expanding.
246
248
  Works with a links in personal messages and also with group chats.
@@ -253,6 +255,24 @@ Just send a media link to the chat with bot and get a video or audio reply.
253
255
  |<img width="700" alt="Instagram Photo post usage example" src="https://github.com/user-attachments/assets/29324b94-7314-4a38-8790-3483011d355d"> Instagram Photo post usage example|<img width="700" alt="Instagram Photo Carousel usage" src="https://github.com/user-attachments/assets/2598e329-e16e-455e-91e9-a027e8994283"> Instagram Photo Carousel usage example|<img width="757" alt="Instagram Photo bulk Strories download usage example" src="https://github.com/user-attachments/assets/2c8c91ac-6ade-4d1d-a677-2b36bb40ff39"> Instagram Photo bulk Strories download usage example|
254
256
  |<img width="700" alt="Instagram specific Story download usage example" src="https://github.com/user-attachments/assets/03dc70c5-6933-4122-9c7c-5f7d734d117b"> Instagram specific Story download usage example|<img width="700" alt="Group chat usage example" src="https://github.com/user-attachments/assets/649fcb1e-785b-4efd-9153-69644c6d898b"> Group chat usage example|
255
257
 
258
+ ### **Warp Beacon manifesto**
259
+
260
+ > Once, the Internet was built as a borderless network — a space where knowledge, culture, and ideas could flow freely across the globe.
261
+ > But over time, freedom gave way to artificial walls, anti-bot shields, and region locks.
262
+ >
263
+ > **warp_beacon** is our answer to that shift.
264
+ >
265
+ > This is a tool for those who refuse to accept "access denied by geolocation" or "content unavailable in your region."
266
+ > It is a bridge over ML filters, CAPTCHAs, and man-made barriers.
267
+ >
268
+ > We don’t break the rules — we restore the original spirit of the Internet:
269
+ > 📡 **free exchange of information**,
270
+ > 🌍 **unrestricted access to global content**,
271
+ > 🤖 **tools that serve the user**, not the platform.
272
+ >
273
+ > **warp_beacon** — the freedom to deliver content where it’s needed most.
274
+
275
+ ## Configuration example ##
256
276
 
257
277
  In order to setup your own instance, you will need:
258
278
 
@@ -261,8 +281,6 @@ In order to setup your own instance, you will need:
261
281
 
262
282
  All bot configuration stored in [warp_beacon.conf](https://github.com/sb0y/warp_beacon/blob/main/etc/warp_beacon.conf) file.
263
283
 
264
- ## Configuration example ##
265
-
266
284
  ```env
267
285
  TG_TOKEN="you telegram token received from @BotFather"
268
286
  # these 3 settings should be obtained at https://my.telegram.org/apps
@@ -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=UmnivgpTPX3WFWoDJST4G4YTbxaMmCEc5cNERYmejdE,24
7
+ warp_beacon/__version__.py,sha256=TfAWHvchJxNby1o5FoKtWae8mrExNMeQhHNn0j9tiww,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
@@ -19,8 +19,8 @@ warp_beacon/mediainfo/audio.py,sha256=ous88kwQj4bDIChN5wnGil5LqTs0IQHH0d-nyrL0-Z
19
19
  warp_beacon/mediainfo/silencer.py,sha256=qxMuViOoVwUYb60uCVvqHiGrqByR1_4_rqMT-XdMkwc,1813
20
20
  warp_beacon/mediainfo/video.py,sha256=UBZrhTN5IDI-aYu6tsJEILo9nFkjHhkldGVFmvV7tEI,2480
21
21
  warp_beacon/scheduler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- warp_beacon/scheduler/instagram_human.py,sha256=b_Ec775QchL88X3JEZeO3EYrQ9Cj1BjVzuIX0EmqRYg,4689
23
- warp_beacon/scheduler/scheduler.py,sha256=2y2eDBxkE5vHRpSVcV-mwYnxFuueMalK3LOhgUecNSA,2796
22
+ warp_beacon/scheduler/instagram_human.py,sha256=K3S14uav0UBZidtREYwgCOCDKyDfWbay5GH-DWMK_JI,5020
23
+ warp_beacon/scheduler/scheduler.py,sha256=ddPhExSgj_RGR1eSDlIm0hVgTVM_76UEMEl9i-eYuQ8,2915
24
24
  warp_beacon/scraper/__init__.py,sha256=V_C5SmAmRtjFfVBtTotOHCW3ILMQ8m_ulrBF6ry59_A,16944
25
25
  warp_beacon/scraper/abstract.py,sha256=28a0aBKZpi8IKptLWdB6RuVbOkrUbrhT7LSZX7QRQtg,2725
26
26
  warp_beacon/scraper/account_selector.py,sha256=oqwtyT2_xBYkx_7ysoz0VLa-x8EpiBifmF12MUNLCW8,5316
@@ -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.38.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
47
- warp_beacon-2.3.38.dist-info/METADATA,sha256=JO259Z3taKEgcBQuqqnH1kRnnuHy8_gcKL9ORRgIf4U,21723
48
- warp_beacon-2.3.38.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
49
- warp_beacon-2.3.38.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
50
- warp_beacon-2.3.38.dist-info/top_level.txt,sha256=qGjHVVfyf6lTmbdSA-fQq0rHS1YVS4HoJT3rag5xgPE,1141
51
- warp_beacon-2.3.38.dist-info/RECORD,,
46
+ warp_beacon-2.3.39.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
47
+ warp_beacon-2.3.39.dist-info/METADATA,sha256=J2Hp81NnTvPQT4CtXBcTOwQ4gp7lf0Kn_3J2V4I3VcE,22604
48
+ warp_beacon-2.3.39.dist-info/WHEEL,sha256=tTnHoFhvKQHCh4jz3yCn0WPTYIy7wXx3CJtJ7SJGV7c,91
49
+ warp_beacon-2.3.39.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
50
+ warp_beacon-2.3.39.dist-info/top_level.txt,sha256=qGjHVVfyf6lTmbdSA-fQq0rHS1YVS4HoJT3rag5xgPE,1141
51
+ warp_beacon-2.3.39.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (76.1.0)
2
+ Generator: setuptools (77.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5