pub fn download_landform(url: String) -> landform::Landform {
    let data = download_page(&url);
    let document = Document::from_read(data).unwrap();

    let mut name: String = "".to_owned();
    let mut lat: String = "".to_owned();
    let mut lon: String = "".to_owned();

    for node in document.find(Class("article-content")) {
        // Search for the table rows
        node.find(Name("tr"))
            .for_each(|x| x.find(Name("td")).for_each(
                |i| if i.text() == "Name" {
                    name = i.next().unwrap().text(); 
                } else if i.text() == "Latitude" {
                    lat = i.next().unwrap().text();
                } else if i.text() == "Longitude" {
                    lon = i.next().unwrap().text();
                }
            ));
    }

    let item = landform::Landform {name: name, latitude: lat, longitude: lon};
    item
}
/// Downloads an individual landform from the database

Downloads an individual landform from the database
Downloads an individual landform from the database
pub fn download_landform(url: String) -> landform::Landform {
    let data = download_page(&url);
    let document = Document::from_read(data).unwrap();
    let mut name: String = "".to_owned();
    let mut lat: String = "".to_owned();
    let mut lon: String = "".to_owned();
    for node in document.find(Class("article-content")) {
        // Search for the table rows
        node.find(Name("tr"))
            .for_each(|x| x.find(Name("td")).for_each(
                |i| if i.text() == "Name" {
                    name = i.next().unwrap().text(); 
                } else if i.text() == "Latitude" {
                    lat = i.next().unwrap().text();
                } else if i.text() == "Longitude" {
                    lon = i.next().unwrap().text();
                }
            ));
    }
    let item = landform::Landform {name: name, latitude: lat, longitude: lon};
    item
}
pub fn download_landform ( url : String ) -> landform :: Landform { let data = download_page ( & url ) ; let document = Document :: from_read ( data ) . unwrap ( ) ; let mut name : String = " " . to_owned ( ) ; let mut lat : String = " " . to_owned ( ) ; let mut lon : String = " " . to_owned ( ) ; for node in document . find ( Class ( " " ) ) { // Search for the table rows
 node . find ( Name ( " " ) ) . for_each ( | x | x . find ( Name ( " " ) ) . for_each ( | i | if i . text ( ) == " " { name = i . next ( ) . unwrap ( ) . text ( ) ; } else if i . text ( ) == " " { lat = i . next ( ) . unwrap ( ) . text ( ) ; } else if i . text ( ) == " " { lon = i . next ( ) . unwrap ( ) . text ( ) ; } ) ) ; } let item = landform :: Landform { name : name , latitude : lat , longitude : lon } ; item }
Downloads an individual landform from the database
Downloads an individual landform from the database
url
String