pytroll / pyorbital

Orbital and astronomy computations in python
http://pyorbital.readthedocs.org/
GNU General Public License v3.0
224 stars 77 forks source link

TLE URIs land at redirect page #100

Closed gerritholl closed 2 years ago

gerritholl commented 2 years ago

The URIs hardcoded in tlefile.py are out of date. They all point to celestrak.com. This should be celestrak.org:

https://github.com/pytroll/pyorbital/blob/6c40a8c13a26fc4ad7fe6d3d9bf1856183291c51/pyorbital/tlefile.py#L41-L49

Code Sample, a minimal, complete, and verifiable piece of code

curl http://celestrak.com/NORAD/elements/weather.txt

Problem description

The URIs hardcoded in pyorbital should be up-to-date. The URI results in HTTP Code 301. There is a risk the URI may stop working at some point.

Expected Output

TLE-file.

Actual Result, Traceback if applicable

<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://celestrak.org/NORAD/elements/weather.txt">here</a></body><head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="http://celestrak.org/NORAD/elements/resource.txt">here</a></body>

Versions of Python, package at hand and relevant dependencies

pyorbital main

gerritholl commented 2 years ago

See also the message at https://celestrak.org/