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):
|
def add_torrents(args: dict):
|
||||||
url = "https://mirrors.jevincanders.net/armbian/dl/"
|
archive_dir_urls = [
|
||||||
response = requests.get(url, timeout=60)
|
"https://mirrors.jevincanders.net/armbian/dl/orangepi5-plus/archive/",
|
||||||
soup = BeautifulSoup(response.content, "html.parser")
|
"https://mirrors.jevincanders.net/armbian/dl/rockpro64/archive/",
|
||||||
links = soup.find_all("a")
|
"https://mirrors.jevincanders.net/armbian/dl/rpi4b/archive/",
|
||||||
|
]
|
||||||
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/")
|
|
||||||
|
|
||||||
torrent_urls = []
|
torrent_urls = []
|
||||||
for url in archive_dir_urls:
|
for url in archive_dir_urls:
|
||||||
|
Loading…
Reference in New Issue
Block a user