在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:eafer/rdrview开源软件地址:https://github.com/eafer/rdrview开源编程语言:C 91.5%开源软件介绍:rdrviewCommand line tool to extract the main content from a webpage, as done by the "Reader View" feature of most modern browsers. It's intended to be used with terminal RSS readers, to make the articles more readable on web browsers such as lynx. The code is closely adapted from the Firefox version and the output is expected to be mostly equivalent. SecurityThis tool is young and written in C, so it's reasonable to wonder about the potential for memory issues. To be safe, all HTML parsing happens inside a sandboxed subprocess. Seccomp is used for this purpose on Linux, Pledge on OpenBSD, and Capsicum on FreeBSD. UsageLinuxThere are three direct dependencies: libxml2, libseccomp and libcurl. On Debian/Ubuntu, you can install the first two by running (as root):
The libcurl package comes in different flavours, depending on the backend that provides the SSL support. Any of them will do. To install the GnuTLS version:
For rdrview to be useful, you should also get a character mode web browser such as lynx:
The name of the packages might differ in your distribution. On Fedora, for example, you can install everything with:
To build rdrview, just cd to its directory and run
Now it should be ready to be used. You can try:
For more information, see the man page:
If you find rdrview useful and want to install it, become root again and run
Now you can just call it with BSDsTo build rdrview on the BSDs, you will need GNU make as well as the libraries. Having a terminal browser available is recommended. On OpenBSD, become root and run
On FreeBSD, that would be
Now you can cd to the source directory and run
macOSI don't own any Apple computers to test this myself, but I've been told that
rdrview does build on macOS. A sandbox is not yet implemented, but the tool
can still be run with the Creditsrdrview was written by Ernesto A. Fernández, but it's mainly a transpilation done by hand of Mozilla's Readability.js; which was itself, in their own words, "heavily based on Arc90's readability.js". This is the original license:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论