about summary refs log tree commit diff
path: root/download_data.py
blob: 878cae891c88ed0b3e7e93c4cb8891ba489581ee (plain)
1
2
3
4
5
6
7
8
9
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")