renamed run.bat. changed logging back to info
This commit is contained in:
14
main.py
14
main.py
@@ -36,7 +36,7 @@ class Receive(Base):
|
||||
Distance = Column(Integer)
|
||||
Azimuth = Column(Integer)
|
||||
Band = Column(Integer)
|
||||
Version = Column(Float)
|
||||
Version = Column(String)
|
||||
Code = Column(Integer)
|
||||
|
||||
|
||||
@@ -79,13 +79,17 @@ links = soup.find_all("a")
|
||||
for link in links:
|
||||
linkArray.append(link.get('href'))
|
||||
ReportDownload = linkArray[-6:-5]
|
||||
print(ReportDownload[0])
|
||||
|
||||
#Download the latest zip and save it to the working folder.
|
||||
download = requests.get(ReportDownload[0], stream=True)
|
||||
with open('./download.zip', 'wb') as fd:
|
||||
for chunk in download.iter_content(chunk_size=128):
|
||||
fd.write(chunk)
|
||||
# print(ReportDownload[0])
|
||||
try:
|
||||
with open('./download.zip', 'wb') as fd:
|
||||
for chunk in download.iter_content(chunk_size=128):
|
||||
fd.write(chunk)
|
||||
except:
|
||||
pass
|
||||
print(ReportDownload[0])
|
||||
|
||||
#unzip the file and grab the CSV filename
|
||||
with zipfile.ZipFile('./download.zip', 'r') as zip:
|
||||
|
||||
Reference in New Issue
Block a user