refactored weather URL parsing