I require PHP functions to "scrape" data from [login to view URL] and return data in XML format.
Data extraction is required from 3 different page types - 1) List of countries; 2) List of cities for each country; 3) weather forecast and climate data for each city.
## Deliverables
I require PHP functions (or class) to "scrape" data from [login to view URL] and return data as a string in XML format.
1. Return list of countries and their page urls from front page of [login to view URL]
2. For any given country page url (eg. [login to view URL]) to return
a) Name of weather data source provider and its url
a) list of city names and their urls
3. For any given city page url (eg. [login to view URL]) to return
a) Date/time of forecast issue
b) For each forecast day - date, min, max, icon, description
c) For each month - avg min, max, rainfall and raindays
Code must cope with fact that there are small variations in data availability for each city eg. different number of days in forecast for different cities, and climate data not available for some cities.