Skip to content

Commit

Permalink
Merge pull request #5 from doronz88/feature/update-catalog
Browse files Browse the repository at this point in the history
Feature/update catalog
  • Loading branch information
doronz88 committed Sep 27, 2023
2 parents af1916e + ee64da7 commit 60b493b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions applecatalog/__main__.py
Expand Up @@ -11,6 +11,7 @@
coloredlogs.install(level=logging.DEBUG)

logging.getLogger('urllib3.connectionpool').disabled = True
logging.getLogger('charset_normalizer').disabled = True


def extract_package(filename: Path, out_dir: Path) -> None:
Expand Down
7 changes: 5 additions & 2 deletions applecatalog/catalog.py
Expand Up @@ -7,10 +7,13 @@
from typing import Generator, List, Mapping

import requests
import urllib3
from tqdm import tqdm

APPLE_SEED_URL = 'https://swscan.apple.com/content/catalogs/others/index-13-12-10.16-10.15-10.14-10.13-10.12-10.11-' \
'10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz'
urllib3.disable_warnings()

APPLE_SEED_URL = 'https://swscan.apple.com/content/catalogs/others/index-14-13-12-10.16-10.15-10.14-10.13-10.12-10.11' \
'-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz'
MacOsProductInfo = namedtuple('MacOsProduct', 'product name build version')
ProductInfo = namedtuple('ProductInfo', 'id version title date basename')

Expand Down

0 comments on commit 60b493b

Please sign in to comment.