Changeset 1114:177cccfbb71c
- Timestamp:
- 10/18/23 17:27:35 (14 months ago)
- Branch:
- python3
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/web.py
r1074 r1114 654 654 def run(self): 655 655 """Perform the retrieval opf the METARs.""" 656 url = "http://www.aviationweather.gov/adds/dataserver_current/httpparam?" 657 data = urllib.parse.urlencode([ ("dataSource" , "metars"), 658 ("requestType", "retrieve"), 659 ("format", "csv"), 660 ("stationString", " ".join(self._airports)), 661 ("hoursBeforeNow", "24"), 662 ("mostRecentForEachStation", "constraint")]) 656 url = "https://aviationweather.gov/cgi-bin/data/metar.php?" 657 data = urllib.parse.urlencode([ ("ids", ",".join(self._airports)), 658 ("hours", "0"), 659 ("format", "raw") ]) 663 660 result = Result() 664 661 result.metars = {}
Note:
See TracChangeset
for help on using the changeset viewer.