http://www.onlineweather.com/v4/uk/climate /London.html http://www.onlineweather.com/v4/uk/climate/York.html http://www.onlineweather.com/v4/uk/climate /London.html http://www.onlineweather.com/v4/uk/climate/Cardiff.html http://www.onlineweather.com/v4/uk/climate/?????.html Show the URL for the first location. Ask pupils which part of the URL indicates the city. Ask pupils what the URL would be to collect data for London and Cardiff. Demonstrate they are correct by revealing the next two URLs. Show the last URL and explain that the name of the city is the only part of the URL which needs to be changed. Explain that the name of the city must start with a capital letter or the query will not work. Tell pupils that the city must also be in the website database if it is to work.
Ensure the cursor is in cell A1 of the ‘Input’ worksheet. To edit the web query, select Edit Query… from the Data, Get External Data… menu
In the Edit Web Query dialogue box, edit the URL by clicking once on the URL, replace the word ‘York’ with ‘London’. Click on ‘OK’ to finish. The URL includes the name of the city as the web page: http://www.onlineweather.com/v4/uk/climate/York.html To select another city, replace the city with the name of another. eg: http://www.onlineweather.com/v4/uk/climate/London.html In this URL, the address is case sensitive and must begin with a capital letter.
The data for the new city will be entered into the worksheet, the data in the ‘Process’ worksheet will be updated and the ‘Output’ worksheet will graph the new data automatically.