def getWeather():

  # Name of the Web page as file
  BOMfile = "bomInternationalObs.htm"

  # Open the file and read it
  file = open(getMediaPath(BOMfile), "rt")
  fileList = file.readlines()
  file.close()

  print "Number of lines in file:", len(fileList)

  weatherList = []

  # Process the file list until we find the start string

  i = 0  # Counter in list

  while (fileList[i].find("----- start -----") < 0):
    i = i + 1

  # Process the file list until we find the end string

  while (fileList[i].find("----- end -----") < 0):
    weatherList.append(fileList[i])
    i = i + 1

  print "Number of weather observations:", len(weatherList)

  for obs in weatherList:
    print "City:", obs[:11]


