Update fetchOrbit.py

LT1AB
Bryan Marfito 2021-03-24 09:48:09 +08:00 committed by GitHub
parent a10cba9f93
commit f67a4cfbaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 7 deletions

View File

@ -161,11 +161,13 @@ if __name__ == '__main__':
match = None match = None
try: try:
for url1 in url: for url1 in url:
r = session.get(url1, verify=False) r = session.get(url1, verify=False)
r.raise_for_status() r.raise_for_status()
parser = MyHTMLParser(satName, url1) parser = MyHTMLParser(satName, url1)
parser.feed(r.text) parser.feed(r.text + "\n")
for resulturl, result in parser.fileList: for resulturl, result in parser.fileList:
if oType == 'precise': if oType == 'precise':
match = os.path.join(resulturl, result) match = os.path.join(resulturl, result)