{"id":13437165,"url":"https://github.com/eafer/rdrview","last_synced_at":"2025-05-15T04:04:36.152Z","repository":{"id":38537049,"uuid":"303476019","full_name":"eafer/rdrview","owner":"eafer","description":"Firefox Reader View as a command line tool","archived":false,"fork":false,"pushed_at":"2025-05-11T19:32:04.000Z","size":4741,"stargazers_count":874,"open_issues_count":11,"forks_count":36,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-11T20:26:24.016Z","etag":null,"topics":["cli","elinks","firefox","freebsd","html","links","linux","lynx","macos","newsbeuter","newsboat","openbsd","rss","terminal","w3m"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eafer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://www.paypal.me/eafer"}},"created_at":"2020-10-12T18:16:09.000Z","updated_at":"2025-05-11T19:32:09.000Z","dependencies_parsed_at":"2024-06-09T04:35:02.947Z","dependency_job_id":"1feaef12-f06a-40c2-8eaf-5bd7148ba5a7","html_url":"https://github.com/eafer/rdrview","commit_stats":{"total_commits":72,"total_committers":8,"mean_commits":9.0,"dds":"0.13888888888888884","last_synced_commit":"0bf7b5abfa22c252761f594c3bd6228947c50155"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eafer%2Frdrview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eafer%2Frdrview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eafer%2Frdrview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eafer%2Frdrview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eafer","download_url":"https://codeload.github.com/eafer/rdrview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254270641,"owners_count":22042858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","elinks","firefox","freebsd","html","links","linux","lynx","macos","newsbeuter","newsboat","openbsd","rss","terminal","w3m"],"created_at":"2024-07-31T03:00:54.774Z","updated_at":"2025-05-15T04:04:36.104Z","avatar_url":"https://github.com/eafer.png","language":"C","readme":"# rdrview\n\nCommand line tool to extract the main content from a webpage, as done by the\n\"Reader View\" feature of most modern browsers. It's intended to be used with\nterminal RSS readers, to make the articles more readable on web browsers such\nas lynx. The code is closely adapted from\n[the Firefox version](https://github.com/mozilla/readability)\nand the output is expected to be mostly equivalent.\n\n## Security\n\nThis tool is young and written in C, so it's reasonable to wonder about the\npotential for memory issues. To be safe, all HTML parsing happens inside a\nsandboxed subprocess. Seccomp is used for this purpose on Linux, Pledge on\nOpenBSD, and Capsicum on FreeBSD.\n\n## Usage\n\n### Linux\n\nThere are three direct dependencies: libxml2, libseccomp and libcurl.\nOn Debian/Ubuntu, you can install the first two by running (as root):\n\n    apt install libxml2-dev libseccomp-dev\n\nThe libcurl package comes in different flavours, depending on the backend that\nprovides the SSL support. Any of them will do. To install the GnuTLS version:\n\n    apt install libcurl4-gnutls-dev\n\nFor _rdrview_ to be useful, you should also get a character mode web browser\nsuch as lynx:\n\n    apt install lynx\n\nThe name of the packages might differ in your distribution. On Fedora, for\nexample, you can install everything with:\n\n    dnf install libcurl-devel libxml2-devel libseccomp-devel lynx\n\nTo build _rdrview_, just cd to its directory and run\n\n    make\n\nNow it should be ready to be used. You can try:\n\n    ./rdrview 'https://github.com/eafer/rdrview'\n\nFor more information, see the man page:\n\n    man ./rdrview.1\n\nIf you find _rdrview_ useful and want to install it, become root again and run\n\n    make install\n\nNow you can just call it with `rdrview` and get help with `man rdrview`, like\nyou would for any other tool in your system.\n\n### BSDs\n\nTo build _rdrview_ on the BSDs, you will need GNU make as well as the libraries.\nHaving a terminal browser available is recommended. On OpenBSD, become root and\nrun\n\n    pkg_add gmake gcc libxml curl lynx\n\nOn FreeBSD, that would be\n\n    pkg install gmake gcc libxml2 curl lynx\n\nNow you can cd to the source directory and run `gmake` for the build, and\noptionally `gmake install` for the installation. The BSDs don't provide any\nmailcap file by default, so to run rdrview you will need to specify the web\nbrowser:\n\n    ./rdrview -B lynx 'https://github.com/eafer/rdrview'\n\n### macOS\n\nI don't own any Apple computers to test this myself, but I've been told that\n_rdrview_ does build on macOS. A sandbox is not yet implemented, but the tool\ncan still be run with the `--disable-sandbox` flag, as long as the user\nunderstands the risk.\n\n## Credits\n\n_rdrview_ was written by\n[Ernesto A. Fernández](mailto:ernesto.mnd.fernandez@gmail.com),\nbut it's mainly a transpilation done by hand of Mozilla's _Readability.js_;\nwhich was itself, in their own words, \"heavily based on Arc90's\nreadability.js\". This is the original license:\n\n    Copyright (c) 2010 Arc90 Inc\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":["https://www.paypal.me/eafer"],"categories":["C","cli","firefox"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feafer%2Frdrview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feafer%2Frdrview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feafer%2Frdrview/lists"}