Skip to content

Commit

Permalink
update scraper: EndeavourOS
Browse files Browse the repository at this point in the history
  • Loading branch information
flameshikari committed Feb 25, 2024
1 parent 5062868 commit 767268b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/distros/endeavouros/scraper.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
from main import * # noqa
from datetime import datetime


def init():

values = []
regexp_version = re.compile(r'[-_](\d+[-_]\d+(_R\d+)?)')
url_base = 'https://mirror.moson.org/endeavouros/iso/'
regexp_version = re.compile(r'-(\d+\.\d+\.\d+)')
url_base = 'http://md.mirrors.hacktegic.com/endeavouros/iso/'
year = str(datetime.now().year)

for iso_url in get.urls(url_base):

if not year in iso_url: continue
iso_arch = "x86_64"
iso_size = get.size(iso_url)
iso_version = re.search(regexp_version, iso_url).group(1).replace('-', '_')
Expand Down

0 comments on commit 767268b

Please sign in to comment.