I can get the text file when I set airport to one variable. However, how can I get the text files for multiple airport codes and display the information?
airport = 'KSFO, KSJC, KOAK'
for metar in urlopen('http://weather.noaa.gov/pub/data/observations/metar/stations/%s.TXT' %airport):
metar = metar.decode("utf-8")
if "%s" %airport in metar:
print metar