iancoleman / cia_world_factbook_api

Converts the CIA World Factbook into a json data structure
MIT License
199 stars 28 forks source link

CIA World Factbook API

Converts the CIA World Factbook into a json data structure.

Data

Usage

If you just want the latest data, get it using the Latest link above.

If you also want to get the full historical data set, use the Historical link above.

If you want to parse the factbook html into json for yourself:

If you want to fetch the html files yourself and then parse them:

Tests

Contributing

Contributions are most welcome.

Reporting Issues

Please report issues using the Issues tab at the top of this page.

Pull Requests

If you modify the code please submit a pull request for review.

Most of the parsing logic is in src/country in the files page.go and string_conversions.go.

If the parser is modified, please update the VERSION contant in country/page.go.

License

MIT - see LICENSE