TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Build a Kindle book of PG's essays

53 点作者 olasitarska超过 12 年前

9 条评论

phreeza超过 12 年前
I did a script like this a while back, and asked pg before releasing it. He asked me not to do it so I refrained.<p>edit: just checked my email, i actually asked him about putting up the epub, not the script. but same difference I suppose.
评论 #4800569 未加载
PanMan超过 12 年前
Impressive how short this can be with the right libraries: 40 lines of code to scrape an index, download the pages, get the right parts, and make them an ebook.<p>However, wouldn't it be more efficient if one person would do this, and publish it? Now everybody has to scrape PG's site. Thanks for the code tho!<p>What is the licence on the articles?
评论 #4800543 未加载
wslh超过 12 年前
Use lxml.html instead of BeautifulSoup
评论 #4800924 未加载
chongli超过 12 年前
I tried running it and it chokes on "Chapter 1 of ANSI Common Lisp". I think that's due to the link being a txt file rather than html, causing an exception to be thrown: "Error: URL doesn't exist".
评论 #4800573 未加载
tangue超过 12 年前
Those essays are available for free on his site. If you want to scrap it for yourself, you're in a grey zone, but it will be fine. But hey, authors deserve respect : if an author wants to publish an ebook, he will.
评论 #4800804 未加载
评论 #4801121 未加载
riffraff超过 12 年前
isn't kindle's format different from epub?
评论 #4800556 未加载
sebcioz超过 12 年前
Could you upload result - epub file?
评论 #4800828 未加载
评论 #4800540 未加载
smartial_arts超过 12 年前
Ola, this is brilliant!
评论 #4800451 未加载
denzil_correa超过 12 年前
Super cool stuff. :-)
评论 #4800450 未加载