Created
February 7, 2026 10:40
-
-
Save ZiTAL/fea6230051b1496eeb14c623034fa8ec to your computer and use it in GitHub Desktop.
Ahotsak-etik bideo/audidxuek deskargateko script-e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import subprocess | |
| # https://ahotsbiltegia-1.s3.us-east-005.dream.io/BRM020/brm020_001.mp4 | |
| dir = "/run/media/zital/6B5B-FF18/ahotsak/bermeo" | |
| def getUrlStatus(url): | |
| response = requests.get(url, timeout=3) | |
| return int(response.status_code) | |
| def getUrlContent(url): | |
| subprocess.run( | |
| ["wget", "-P", dir, url], | |
| check=True | |
| ) | |
| for i in range(1, 201): | |
| ii = f"{i:03d}" | |
| for j in range(1, 100): | |
| jj = f"{j:03d}" | |
| mp4 = f"https://ahotsbiltegia-1.s3.us-east-005.dream.io/BRM{ii}/brm{ii}_{jj}.mp4" | |
| if getUrlStatus(mp4) == 200: | |
| getUrlContent(mp4) | |
| continue | |
| mp3 = f"https://ahotsbiltegia-1.s3.us-east-005.dream.io/BRM{ii}/brm{ii}_{jj}.mp3" | |
| if getUrlStatus(mp3) == 200: | |
| getUrlContent(mp3) | |
| continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment