diff options
Diffstat (limited to 'download_data.py')
-rw-r--r-- | download_data.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/download_data.py b/download_data.py new file mode 100644 index 0000000..878cae8 --- /dev/null +++ b/download_data.py @@ -0,0 +1,10 @@ +import urllib.request + +# downlaod specific categeory +def download(category): + webx_loc = 'http://celestrak.com/NORAD/elements/' + category + '.txt' + disk_loc = 'TLE/' + category + '.txt' + urllib.request.urlretrieve(webx_loc, disk_loc) + +# download category +download("argos") |