warp-beacon 2.6.80__tar.gz → 2.6.81__tar.gz
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-2.6.80/warp_beacon.egg-info → warp_beacon-2.6.81}/PKG-INFO +1 -1
- warp_beacon-2.6.81/warp_beacon/__version__.py +2 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/instagram/wb_instagrapi.py +42 -3
- {warp_beacon-2.6.80 → warp_beacon-2.6.81/warp_beacon.egg-info}/PKG-INFO +1 -1
- warp_beacon-2.6.80/warp_beacon/__version__.py +0 -2
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/LICENSE +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/MANIFEST.in +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/README.md +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/assets/placeholder.gif +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/etc/.gitignore +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/etc/accounts.json +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/etc/proxies.json +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/etc/warp_beacon.conf +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/etc/warp_beacon.service +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/pyproject.toml +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/setup.cfg +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/setup.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/compress/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/compress/video.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/jobs/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/jobs/abstract.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/jobs/download_job.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/jobs/types.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/jobs/upload_job.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/mediainfo/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/mediainfo/abstract.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/mediainfo/audio.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/mediainfo/silencer.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/mediainfo/video.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scheduler/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scheduler/instagram_human.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scheduler/scheduler.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/abstract.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/account_selector.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/exceptions.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/fail_handler.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/instagram/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/instagram/captcha.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/instagram/instagram.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/link_resolver.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/utils.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/youtube/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/youtube/abstract.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/youtube/music.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/youtube/shorts.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/scraper/youtube/youtube.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/storage/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/storage/mongo.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/bot.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/caption_shortener.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/download_status.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/edit_message.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/handlers.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/placeholder_message.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/progress_bar.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/progress_file_reader.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/types.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/telegram/utils.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/uploader/__init__.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/warp_beacon.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon/yt_auth.py +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon.egg-info/SOURCES.txt +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon.egg-info/dependency_links.txt +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon.egg-info/entry_points.txt +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon.egg-info/requires.txt +0 -0
- {warp_beacon-2.6.80 → warp_beacon-2.6.81}/warp_beacon.egg-info/top_level.txt +0 -0
@@ -14,6 +14,28 @@ class WBClient(Client):
|
|
14
14
|
def __init__(self) -> None:
|
15
15
|
super().__init__()
|
16
16
|
self.progress_callback = None
|
17
|
+
self.session = requests.Session()
|
18
|
+
# may be I should remove '"Sec-Fetch-*", "Upgrade-Insecure-Requests", "DNT"' ?
|
19
|
+
self.session.headers.update({
|
20
|
+
"User-Agent": (
|
21
|
+
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
|
22
|
+
"(KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
|
23
|
+
),
|
24
|
+
"Accept": (
|
25
|
+
"text/html,application/xhtml+xml,application/xml;"
|
26
|
+
"q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8"
|
27
|
+
),
|
28
|
+
"Accept-Language": "en-US,en;q=0.9",
|
29
|
+
"Accept-Encoding": "gzip, deflate, br",
|
30
|
+
"Referer": "https://www.instagram.com/",
|
31
|
+
"Connection": "keep-alive",
|
32
|
+
"Sec-Fetch-Site": "same-origin",
|
33
|
+
"Sec-Fetch-Mode": "navigate",
|
34
|
+
"Sec-Fetch-User": "?1",
|
35
|
+
"Sec-Fetch-Dest": "document",
|
36
|
+
"Upgrade-Insecure-Requests": "1",
|
37
|
+
"DNT": "1",
|
38
|
+
})
|
17
39
|
|
18
40
|
def set_progress_callback(self, callback: Callable[[int | None, int, Path], None]) -> None:
|
19
41
|
if not callback or not callable(callback):
|
@@ -27,7 +49,15 @@ class WBClient(Client):
|
|
27
49
|
|
28
50
|
logging.info("Downloading video from '%s' to '%s'", url, path)
|
29
51
|
|
30
|
-
|
52
|
+
prepared = self.session.prepare_request(requests.Request("GET", url))
|
53
|
+
logging.info("Prepared headers: %s", prepared.headers)
|
54
|
+
response = self.session.send(
|
55
|
+
prepared,
|
56
|
+
stream=True,
|
57
|
+
verify=False,
|
58
|
+
proxies=self.public.proxies,
|
59
|
+
timeout=self.request_timeout
|
60
|
+
)
|
31
61
|
response.raise_for_status()
|
32
62
|
logging.info("Response headers: %s", response.headers)
|
33
63
|
|
@@ -69,8 +99,17 @@ class WBClient(Client):
|
|
69
99
|
path = Path(folder) / filename
|
70
100
|
|
71
101
|
logging.info("Downloading photo from '%s' to '%s'", url, path)
|
72
|
-
|
73
|
-
|
102
|
+
logging.info("[Downloader] Using proxies: %s", self.public.proxies)
|
103
|
+
|
104
|
+
prepared = self.session.prepare_request(requests.Request("GET", url))
|
105
|
+
logging.info("Prepared headers: %s", prepared.headers)
|
106
|
+
response = self.session.send(
|
107
|
+
prepared,
|
108
|
+
stream=True,
|
109
|
+
verify=False,
|
110
|
+
proxies=self.public.proxies,
|
111
|
+
timeout=self.request_timeout
|
112
|
+
)
|
74
113
|
response.raise_for_status()
|
75
114
|
logging.info("Response headers: %s", response.headers)
|
76
115
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|