diff --git a/src/passpredict/sources.py b/src/passpredict/sources.py index b979d8f..8f45af7 100644 --- a/src/passpredict/sources.py +++ b/src/passpredict/sources.py @@ -118,7 +118,7 @@ def _query_tle_from_celestrak(self, satid: int = None): """ Download current TLEs from Celestrak and save them to a JSON file """ - url = 'https://celestrak.com/NORAD/elements/gp.php' + url = 'https://celestrak.org/NORAD/elements/gp.php' params = { 'CATNR': satid, 'FORMAT': 'TLE', @@ -137,7 +137,7 @@ def _query_tle_category_from_celestrak(self, category: str) -> List[TLE]: Enter Celestrak category string. Eg. visual, stations, tle-new, weather, noaa, oneweb, starlink """ - url = f'https://celestrak.com/NORAD/elements/{category}.txt' + url = f'https://celestrak.org/NORAD/elements/{category}.txt' r = httpx.get(url) if not r.text or r.status_code >= 300: raise CelestrakError(f'Celestrak TLEs for {category}.txt not found') @@ -180,4 +180,4 @@ def parse_tle(tle_lines): raise Exception(f"Invalid TLE strings {tle_lines}") satid = int(tle1[2:7]) tle = TLE(satid, (tle1, tle2), name=name) - return tle \ No newline at end of file + return tle