Zane Austen

Share this post

The Comprehensive Lee Kuan Yew Anthology

www.zaneausten.com

The Comprehensive Lee Kuan Yew Anthology

I scraped the National Archives of Singapore for all of Lee Kuan Yew's writings, speeches, and rallies, and put them into a 12,000 page PDF. Download it here.

Zane Austen
Jun 26, 2022
6
3
Share this post

The Comprehensive Lee Kuan Yew Anthology

www.zaneausten.com

The PDF is at the bottom. Enjoy!


Why LKY?

Lee Kuan Yew is highly controversial, for example:

  1. Strong advocate for hanging drug traffickers: “If we could kill them 100 times, we would.”

  2. Rejecting American media norms by suing journalists, and winning.

  3. Governing and speaking on cultural and racial differences.

But also highly successful:

Jewel. Photo by Nathaniel Yeo / Unsplash.

And responsible for inspiring China’s dramatic reform under Deng Xiaoping, indirectly lifting 800 million people out of poverty.

Obviously, Singapore is a successful country. But it’s had to reinvent itself many times: from basic manufacturing, to skilled manufacturing, to a financial and technology hub, and now advanced manufacturing.

How did he defeat the Communists, deal with the involuntary ejection of Singapore from Malaysia, and defuse the fanged criticisms of Western journalists along the way? We can read his books, but only by reading the primary sources can we transport ourselves back in time.


The Code

I scraped the data with Mathematica from the National Archives of Singapore and collated them with Ghostscript.

In a little more detail: browsing the National Archives of Singapore website, I found an interesting PDF of an LKY speech. Looking a little further, I noticed I could search and filter by Lee Kuan Yew’s works. And a little further, by inspecting the JS attached to the click handler of the “next” button, I realized the archives were navigable with a URL parameter. From there, it was simple to construct the page URLs, import all hyperlinks within them, filter for the actual PDF, and download them (with some interval to not get silently rate-limited).

Here’s the code:

Lee Kuan Yew Scraping
21.3KB ∙ PDF File
Download
Download

Just a few lines! Love Mathematica.


The PDF

No paywall. Here you go!

Follow @zane1729 if you’d like.

(FYI for users on mobile: it’s 200MB.) Click:

Or, alternatively, and thank you to @zachcaceres for the OCR to make this searchable:

The Comprehensive Lee Kuan Yew Anthology
209MB ∙ PDF File
Download
Download

Share


If you do any interesting things with the PDF (train GPT-3 with it, for example), please share it with me on Twitter @zane1729!

Hope you enjoy.

3
Share this post

The Comprehensive Lee Kuan Yew Anthology

www.zaneausten.com
3 Comments
Lu
Jul 28, 2022Liked by Zane Austen

Great job!

Expand full comment
ReplyCollapse
Theo
Jun 26, 2022Liked by Zane Austen

o7

Expand full comment
ReplyCollapse
1 more comment…
TopNewCommunity

No posts

Ready for more?

© 2023 Zane Austen
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing