Use command to get the list of tle txt urls:
wget --spider -r -l1 https://www.celestrak.com/NORAD/elements/ 2>&1|grep '^.*http.*elements\/.*\.txt$' >satellite.txt
- 2023-05-24: webpage has changed its front-end style.
wget --spider -r -l1 https://celestrak.org/NORAD/elements/index.php?FORMAT=2le 2>&1|grep '^.*http.*elements\/.*\.txt$' >satellite.txt
(not working)
wget --spider -r -l1 https://www.celestrak.com/NORAD/elements/ 2>&1|awk '/^.*http.*elements\/.*\.txt$/{print $3}' >satellite.txt
- 2023-05-24: webpage has changed its front-end style.
Command with awk is the final result.grep is test of regexp