diff options
author | HanEmile <emile.hansmaennel@gmail.com> | 2017-02-14 18:06:55 +0100 |
---|---|---|
committer | HanEmile <emile.hansmaennel@gmail.com> | 2017-02-14 18:06:55 +0100 |
commit | 299c39c511490e0f234c30f1ca3555bade1d5595 (patch) | |
tree | 581f33c597ce98ee37208ec73a6873d207d3ff77 /download_data.py | |
parent | 129a771979ad2cb74b3c30808f96335eb1925171 (diff) |
added python file for downloading data, added TLE Folder for storing data
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") |