Hello, I've put together a factbook gem that lets you read in World Factbook country profile pages (in HTML) and returns a structured Ruby hash that you can save, for example, as a pretty printed JSON file e.g. For Brazil use:
Factbook::Page.new( 'br' ).to_jsonFind ready-to-use country profile in JSON in the
openmundi/factbook.jsonrepo. Thanks to the CIA for the great service (and public domain data - no rights reserved, no copyright). Cheers.