I am having trouble understanding how to do this. The purpose of this is going to have a different module call to this function have it return the correct url which will than be downloaded and have things extracted from it.
getQuery(location)
returns a URL containing a GET query to retrieve the weather from wunderground.com for a given location.
For example, getQuery('Princeton, WV')
returns the URL
http://www.wunderground.com/cgi-bin/findweather/hdfForecast?query=Princeton%2C+WV