News for hackers. Stuff that matters.
Re:Show HN: CIA World Factbook Archive (1990–2025), searchab... by 1659447091 on Monday February 23, 2026 @12:08AM (#47118374)
There is a github of the factbook for anyone that just wants JSON or markdown files:=> https://github.com/factbook

"A cache for datasets for the country profiles from the World Factbook in the original (1:1) format from the cia.gov website"

https://github.com/factbook/cache.factbook.json

Re:Show HN: CIA World Factbook Archive (1990–2025), searchab... by MilkMp on Monday February 23, 2026 @12:14AM (#47118398)
Hi there, thanks for linking this! My GitHub and website both link to and use this source! I just thought putting it in a SQL database and making the entire 1990-2025 queryable was needed since I couldn't find one anywhere :)
Re:Show HN: CIA World Factbook Archive (1990–2025), searchab... by genewitch on Monday February 23, 2026 @01:18AM (#47118744)
it is a lot of fun and rewarding to do this! I've done it several times for medium-sized datasets, like wikipedia dumps, the entire geospatial dataset to mapreduce it (pgsql). The wikipedia one was great, i had it set up to query things like "show me all ammunition manufactured after 1950 that is between .30 and .40" and it could just return it nearly instantly. The wikimedia dumps keep the infoboxes and relations intact, so you can do queries like this easily.
Re:Show HN: CIA World Factbook Archive (1990–2025), searchab... by 3eb7988a1663 on Monday February 23, 2026 @01:54AM (#47118946)
Do you have a write-up of this somewhere? When I last looked at the Wikipedia dumps, they looked like a mess to parse. How were you getting structured information?
Re:Show HN: CIA World Factbook Archive (1990–2025), searchab... by genewitch on Tuesday February 24, 2026 @12:15AM (#47133120)
unfortunately, i consider it proprietary.
Re:Show HN: CIA World Factbook Archive (1990–2025), searchab... by iamacyborg on Tuesday February 24, 2026 @03:51AM (#47134599)
You'd presumably have to run some part of the transclusion pipeline to properly handle template/module/page transclusion.
Re:Show HN: CIA World Factbook Archive (1990–2025), searchab... by sovietmudkipz on Monday February 23, 2026 @07:42PM (#47131278)
Ahhhh yes thank you for this link! I'm working on a project and my agent referred me to the factbook. It said all this great savory information was made available on the factbook website. I thought great but when I went to check it was all very basic. Truly I thought my agent was hallucinating!

It wasn't! Note to self: also check archive.org in case there is an internet archive for any sites an agent might reference.

I checked out this repo -- it has the information useful to my project. Thanks for sharing this!