Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

World Factbook Country Profiles - Free Open Public Domain Data

License

NotificationsYou must be signed in to change notification settings

factbook/factbook.github.io

Repository files navigation

What's the World Factbook?

The World Factbook [1][2] published by the Central Intelligence Agency (CIA)offers free country profiles in the public domain (that is, no copyright(s), no rights reserved).

Note: This repo stores "chrome-less" copies of the official online "live" pages(and not copies of the pages included in the archive for bulk download, for example).Since the offical pages have a lot of chrome e.g. page decoration such as sitenavigation headers, footers, scripts, etc. around the "core" country profilea script cleans up the profile page and strips it down to the basics.

Using these "core" country profile pages without any extra headers, footers, scripts, etc.should make it easier to keep track of changes and turn it into structured data (e.g. factbook.json)even as some formatting and styles get rearranged on the official site.

"Live" Browsing

Seefactbook.github.io for "live" browsing allcountry profiles stored in the_profiles/ folder.

Format(ting) Notes

Structure

Sections

Sections useh2's. Examples:

<h2>Introduction</h2><!-- starts the section Introduction -->...<h2>Geography</h2><!-- starts the section Geography -->...<h2>People and Society</h2>...<h2>Government</h2>...

Subsections

Subsections (fields) useh3's. Examples:

<h3>Background:</h3><!-- starts the subsection Background -->...<h3>Location:</h3><!-- starts the subsection Location -->...<h3>Geographic coordinates:</h3>...<h3>Map references:</h3>...<h3>Area:</h3>...

Data Entries

Simple:

<divclass=category_data>Central Europe, north of Italy and Slovenia</div>...<divclass=category_data>1.46 children born/woman (2015 est.)</div>

Simple (with Note):

<divclass=category_data>69.6%</div><div><spanclass=category>note:</span><spanclass=category_data>percent of women aged 18-46 (2008/09)</span></div>

"Nested":

<div><spanclass=category>total population:</span><spanclass=category_data>81.39 years</span></div><div><spanclass=category>male:</span><spanclass=category_data>78.76 years</span></div><div><spanclass=category>female:</span><spanclass=category_data>84.15 years (2015 est.)</span></div>

Cleanup

Note: All (style) classes get stripped except:

  • category
  • category_data

All country comparison links get stripped.All field reference links and images get stripped.The audio player (for the national anthem) gets stripped.

Questions? Comments?

Send them along to theOpen World Database (world.db) and Friends Forum/Mailing List.Thanks!

About

World Factbook Country Profiles - Free Open Public Domain Data

Topics

Resources

License

Stars

Watchers

Forks

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp