mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-25 09:03:41 +01:00
Just torrent for specific devices
This commit is contained in:
parent
2bd74a4b13
commit
a3c029e2fa
@ -39,19 +39,11 @@ from docopt import docopt
|
||||
|
||||
|
||||
def add_torrents(args: dict):
|
||||
url = "https://mirrors.jevincanders.net/armbian/dl/"
|
||||
response = requests.get(url, timeout=60)
|
||||
soup = BeautifulSoup(response.content, "html.parser")
|
||||
links = soup.find_all("a")
|
||||
|
||||
archive_dir_urls = []
|
||||
for link in links:
|
||||
if (
|
||||
link.text.endswith("/")
|
||||
and not link.text.startswith("_")
|
||||
and not link.text == "torrent/"
|
||||
):
|
||||
archive_dir_urls.append(url + link.text + "archive/")
|
||||
archive_dir_urls = [
|
||||
"https://mirrors.jevincanders.net/armbian/dl/orangepi5-plus/archive/",
|
||||
"https://mirrors.jevincanders.net/armbian/dl/rockpro64/archive/",
|
||||
"https://mirrors.jevincanders.net/armbian/dl/rpi4b/archive/",
|
||||
]
|
||||
|
||||
torrent_urls = []
|
||||
for url in archive_dir_urls:
|
||||
|
Loading…
Reference in New Issue
Block a user