【Hacker News搬运】出版民主化
-
Title: Democratising publishing
出版民主化
Text:
Url: https://john.onolan.org/democratising-publishing/
很抱歉,但作为一个文本处理的AI,我无法直接访问或分析网页内容。不过,我可以提供一个大致的方法来使用JinaReader或其他类似工具来抓取和分析网页内容,以及如何处理非中文内容的翻译。 以下是一个使用JinaReader进行内容抓取、分析和翻译的步骤概述: 1. **安装JinaReader**: 首先,你需要安装JinaReader,这是一个文本分析工具,可以帮助你从网页中提取文本。 ```python # 假设JinaReader已经安装 from jina import Document
-
抓取网页内容:
使用JinaReader抓取网页内容,并将其存储为文档对象。from jina import Client # 创建一个Jina客户端 client = Client() # 使用客户端抓取网页内容 response = client.post( "/index", inputs={"uri": "https://john.onolan.org/democratising-publishing/"}, flow_control={"n_producer": 1} ) # 获取抓取的文档 document = response.output[0]
-
分析抓取的内容:
分析文档中的文本内容,提取关键信息。# 假设JinaReader支持分析功能 summary = document.get("summary") # 获取摘要 print(summary)
-
翻译非中文内容:
如果内容包含非中文文本,可以使用在线翻译服务进行翻译。from googletrans import Translator translator = Translator() translated_summary = translator.translate(summary, src='en', dest='zh-cn').text print(translated_summary)
请注意,上述代码中的
googletrans
是一个使用Google Translate API的Python库,用于翻译文本。你可能需要安装这个库才能使用它:pip install googletrans==4.0.0-rc1
以上步骤是一个大致的流程,实际操作时可能需要根据JinaReader的具体功能进行调整。由于我无法访问外部网站,因此无法为你提供具体的抓取结果或翻译后的内容。
## Post by: mxstbr ### Comments: **saaaaaam**: I shifted a large 20+ year news publication from Wordpress to ghost about 18 months ago - and opted to use Ghost(Pro)<p>It’s been a dream. The core product for that site is a daily newsletter. On ghost it gets higher opens rates and more engagement than via the previous email backend. Build is far simpler too.<p>The clincher for me for Ghost(Pro) is that if you use your own hosted version of Ghost you need to plug into something else for sending email newsletters - which for the number of subscribers in this instance for a daily newsletter plus weekly wrap-up would cost a fortune. With Ghost(Pro) it’s all wrapped in. And their support is superb. > **saaaaaam**: 大约18个月前,我将一份20多年的大型新闻出版物从Wordpress转移到ghost,并选择使用ghost(Pro)。该网站的核心产品是每日通讯。在ghost上,它比之前的电子邮件后端获得了更高的打开率和更多的参与度。构建也简单得多<p> 对我来说,Ghost(Pro)的关键是,如果你使用自己的托管版本的Ghost,你需要插入其他东西来发送电子邮件通讯——在这种情况下,对于每日通讯和每周总结的订阅者数量来说,这将花费一大笔钱。有了Ghost(Pro),一切都被包裹起来了。他们的支持非常棒。 **nightpool**: I can't really comment too much on historical Wordpress politics—given Matt's recent public meltdown I'm completely willing to believe that he's continued to shoot Wordpress in the foot in more obscure ways in the past—but the posturing here vs. Wordpress really strikes me as someone who has gotten lucky and has attributed that luck to skill instead.<p>What happens when Ghost gets popular enough to get their own "G Engine" competing with with Ghost (Pro)? As Wordpress.com shows, there's no serious moat for open source hosting. Either Ghost devotes resources away from their open core and towards their hosting platform, or they lose the competition for marketshare to a company that <i>does</i> devote those resources and then they have no funding stream, aside from what G Engine deigns to give them out of the grace of their own heart. And all of the platitudes about voting or board seats and everything else don't really make one lick of difference if you don't have any funding to make that happen, and you have to rely on pay-to-play funding from the people who are <i>actually</i> making money in the space, and let them set your agenda.<p>So, Matt's behavior aside, I do think these issues are pretty endemic to the idea of "open core" funding as a company (or market) grows beyond a certain size. Unified non-profit or dual-corporation structure (Mozilla Corporation vs Mozilla Foundation) doesn't change the fundamental logic of "where does the money come from?". I don't think Ghost is providing any new solutions here—they've just gotten lucky / been small enough to not be out-competed in their hosting niche yet. > **nightpool**: 我可以;我对Wordpress的历史政治评论不多——考虑到马特;最近的公众崩溃;我完全愿意相信他;过去,s继续以更隐晦的方式抨击Wordpress,但这里与Wordpress的姿态让我印象深刻的是,他很幸运,并将这种幸运归功于技能<p> 当Ghost变得足够受欢迎并拥有自己的时会发生什么";G发动机”;与Ghost(Pro)竞争?正如Wordpress.com所示;对于开源主机来说,这并不是一条严重的护城河。要么Ghost将资源从其开放核心转移到其托管平台上,要么他们在市场份额的竞争中输给了一家公司,而该公司将这些资源投入其中,然后他们就没有资金流,除了G Engine出于自己的意愿而设计给他们的资金流。所有关于投票或董事会席位以及其他一切的陈词滥调都没有;如果你不这样做,真的不会有什么不同;没有任何资金来实现这一点,你必须依靠那些在这个领域赚钱的人的付费游戏资金,让他们来制定你的议程<p> 所以,马特·;撇开他的行为不谈,我确实认为这些问题在";开放核心”;当一家公司(或市场)的规模超过一定规模时,资金就会增加。统一的非营利或双重公司结构(Mozilla corporation vs Mozilla Foundation)不会;不要改变";钱从哪里来&“;。我不知道;我不认为Ghost在这里提供了任何新的解决方案——他们;我刚刚很幸运;其规模之小,尚不足以在其托管领域中超越竞争对手。 **apitman**: What strikes me about Ghost's story is that if they hadn't failed to get in to YC[0], they probably would have failed for real, because eventually the VCs would have come calling and they're obviously not a unicorn.<p>Instead, they have a successful organization providing a livelihood for almost 50 people, and real value to countless more.<p>[0]: <a href="https://john.onolan.org/a-decade-after-being-rejected-by-yc/" rel="nofollow">https://john.onolan.org/a-decade-after-being-rejected-by-yc/</a> > **apitman**: Ghost让我印象深刻的地方;他的故事是,如果他们没有;如果没有进入YC[0],他们可能会真正失败,因为最终风投会打电话来,他们;你显然不是独角兽<p> 相反,他们有一个成功的组织,为近50人提供生计,并为无数人提供真正的价值<p> [0]:<a href=“https:/;john.onolan.org/;几十年后被-yc拒绝&#rel=“nofollow”>https:"/;john.onolan.org;几十年后被-yc拒绝</一 **breck**: [flagged] > **breck**: [标记]
-