On a separate debugging/refactor, I notice that
disease_page = open_page("http://www.who.int#{disease_link.attributes["href"].value}")
( https://github.com/devcenter-square/disease-info/blob/develop/app/lib/scrapers/who_scraper.rb#L33 ) seems to be throwing up a NoMethodError: undefined method 'attributes' for ... :Array error, as disease_link seems to be an array of the form ["href", "/entity/mediacentre/factsheets/fs101/en/index.html"] .
On a separate debugging/refactor, I notice that
disease_page = open_page("http://www.who.int#{disease_link.attributes["href"].value}")( https://github.com/devcenter-square/disease-info/blob/develop/app/lib/scrapers/who_scraper.rb#L33 ) seems to be throwing up a
NoMethodError: undefined method 'attributes' for ... :Arrayerror, asdisease_linkseems to be an array of the form["href", "/entity/mediacentre/factsheets/fs101/en/index.html"].