Skip to content

Instantly share code, notes, and snippets.

@TurnOffNOD
Created August 4, 2024 09:45
Show Gist options
  • Save TurnOffNOD/8211237b03326dd1e7efead614321366 to your computer and use it in GitHub Desktop.
Save TurnOffNOD/8211237b03326dd1e7efead614321366 to your computer and use it in GitHub Desktop.
Get more tle data access from celestrak.com, my note. Initial version is very early, upload to gist is late

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment