【Hacker News搬运】1972年Unix V2“测试版”复活
-
Title: 1972 Unix V2 "Beta" Resurrected
1972年Unix V2“测试版”复活
Text:
Url: https://www.tuhs.org/pipermail/tuhs/2025-February/031420.html
很抱歉,作为一个AI,我无法直接访问或抓取互联网上的网页内容。不过,我可以指导你如何使用JinaReader这样的工具来抓取和分析网页内容,以及如何处理非中文内容。 以下是一个使用JinaReader进行内容抓取和分析的基本步骤,以及如何处理非中文内容的方法: 1. **安装JinaReader**: 首先,你需要确保你的系统上安装了JinaReader。这通常涉及到安装Python环境以及JinaReader的依赖库。 2. **抓取网页内容**: 使用JinaReader的API或命令行工具来抓取指定的网页内容。以下是一个使用Python的示例代码片段: ```python from jina import Document, Client # 创建一个Jina客户端 client = Client() # 使用Jina客户端抓取网页 response = client.post( method="search", inputs=["https://www.tuhs.org/pipermail/tuhs/2025-February/031420.html"], flow_name="webpage_crawler" ) # 输出抓取到的内容 for doc in response: print(doc.as_dict())
-
分析抓取的内容:
一旦抓取到内容,你可以使用JinaReader提供的功能来分析文本。这可能包括关键词提取、情感分析等。 -
翻译非中文内容:
如果抓取到的内容不是中文,你需要使用翻译服务来将其翻译成中文。以下是一个使用Google翻译API的示例代码片段:from googletrans import Translator # 创建一个翻译器实例 translator = Translator() # 翻译非中文内容 text = "抓取到的非中文内容" translated_text = translator.translate(text, src='auto', dest='zh-cn').text print(translated_text)
请注意,你需要注册Google翻译API并获取API密钥,以便使用API进行翻译。
将以上步骤结合起来,你可以使用JinaReader抓取网页内容,分析它,并将非中文内容翻译成中文。由于我无法直接访问你提供的链接,我无法为你提供具体的抓取和分析结果。
## Post by: henry_flower ### Comments: **digitalsushi**: Spock levels of fascinating from me. I want to learn how to compile a pdp11 emulator on my mac. > **digitalsushi**: 我真是太着迷了。我想学习如何在我的mac上编译pdp11模拟器。 **WhyNotHugo**: 1328 bytes for a hello world? BLOAT! > **WhyNotHugo**: 1328字节的hello world?膨胀! **dataf3l**: I love this!<p>first time I see people use 'ed' for work!!!<p>I wonder who else has to deal with ed also... recently I had to connect to an ancient system where vi was not available, I had to write my own editor, so whoever needs an editor for an ancient system, ping me (it is not too fancy).<p>amazing work by the creators of this software and by the researchers, you have my full respect guys. those are the real engineers! > **dataf3l**: 我喜欢这个<p> 我第一次看到人们使用;ed■;为了工作<p> 我想知道还有谁要和埃德打交道。。。最近我不得不连接到一个没有vi的古老系统,我必须编写自己的编辑器,所以无论谁需要一个古老系统的编辑器,都可以给我打电话(这不太花哨)<p> 这个软件的创建者和研究人员所做的出色工作,我完全尊重你们。那些才是真正的工程师! **starspangled**: I love browsing the tuhs mailing list from time to time. Awesome to see names like Ken Thompson and Rob Pike, and a bunch of others with perhaps less recognizable names but who were involved in the early UNIX and computing scene. > **starspangled**: 我喜欢不时浏览tuhs的邮件列表。很高兴看到像Ken Thompson和Rob Pike这样的名字,以及其他一些名字可能不太知名但参与早期UNIX和计算场景的人。 ****: > ****:
-