rdrview(1)
πΈ rdrview(1) β General Commands Manual πΈ
Okay bestie, so rdrview is a section 1 command and I'm literally obsessed with it, let me tell you everything π
β¨ NAME β¨
rdrview β extract readable content from a webpage π«Ά
β¨ SYNOPSIS β¨
rdrview [-v] [-u base-url] [-E encoding] [-A user-agent] [-T template]
[-P] [-c|-H|-M|-B browser] [path|url]
β¨ DESCRIPTION β¨
So here's the vibe: rdrview tries to pull out the meaningful content from a webpage β the exact same thing the "Reader View" feature in basically every modern browser does. No cap. It's made for terminal RSS readers, to clean up articles so they look cute on web browsers like lynx. π¦
If you don't give it a url or a path, it'll read the HTML from standard input. And by default, rdrview checks mailcap for a way to display the content as text. But if you'd rather pick the browser yourself, you can β just say the word with the -B option, or set the RDRVIEW_BROWSER environment variable. Slay. π
β¨ EXAMPLES β¨
Got a text mode browser? You can extract content with literally just:
rdrview 'https://en.wikipedia.org/wiki/World_wide_web'
Wanna see that same article in a browser instead? Iconic, do this:
rdrview -B firefox 'https://en.wikipedia.org/wiki/World_wide_web'
Cleaning up local HTML files? Say less:
rdrview -H -u 'http://fakehost.com' < source.html > result.html
And to mediate between the newsboat(1) feed reader and lynx(1) β yes, it's giving matchmaker energy:
BROWSER='rdrview -B lynx' newsboat
β¨ OPTIONS β¨
-c,--checkβ Doesn't extract anything, just does a quick little vibe check to see if the document appears to have any content at all. Exit status is0if it does,1otherwise. π-u base-url,--base=base-urlβ Sets the base used for all relative URLs. Super useful for local files and standard input, where the document's URL might be a whole mystery. π-v,--versionβ Prints the version number ofrdrviewand dips. βοΈ-A user-agent,--agent=user-agentβ Sets the user-agent string. Honestly the default should work fine in most situations, so don't stress.-B browser,--browser=browserβ Tellsrdrviewwhich browser to display the result in. π₯οΈ-E encoding,--encoding=encodingβ Sets the character encoding of the source. By default, the meta tags get checked. π-H,--htmlβ Outputs the raw HTML for the extracted article. β οΈ WARNING: the markup may still contain some scripts, so if you're planning to open it with a modern browser at some point, first check how it implements the same-origin policy for local files. Fr fr, don't skip that part. π-M,--metaβ Outputs only the metadata for the article. Main character energy, minimal info. π-P,--preserve-classesβ Don't remove htmlclassattributes. Leave 'em be. π-T template,--template=templateβ Picks which metadata to include in the extracted article. The template is a comma-separated list of some of the following:title,body,byline,excerpt,sitename,url. The order matters, and metadata fields can be repeated. By default, only thebodyis included. π--disable-sandboxβ Disables the security sandbox. π This one is potentially dangerous, so don't use it unless you actually know what you're doing.
β¨ EXIT STATUS β¨
Exit status is 0 on success, 1 on failure. That's it, that's the whole rule. π
β¨ ENVIRONMENT β¨
Any environment understood by curl(1) can be used here. TMPDIR is respected as well. π§
RDRVIEW_BROWSERβ Default browser to display the extracted articles. The-Boption overrides this.RDRVIEW_TEMPLATEβ Default template for article content. The-Toption overrides this; see that option for details.RDRVIEW_USER_AGENTβ Default user-agent string, overridden by the-Aoption.
β¨ BUGS β¨
Not gonna lie, the markup produced by the -H option is a huge mess. π If you intend to work with it, you may want to pipe it to something like tidy(1) first.
Also β if you have a version of the libraries that hasn't been tested, the security sandbox might not allow the code to run. Please report this! But in the meantime, an option is provided to disable the sandbox: --disable-sandbox. Don't use it unless you have other security measures in place. π
β¨ AUTHOR β¨
Ernesto A. FernΓ‘ndez <ernesto.mnd.fernandez@gmail.com> π
Please report bugs via email or, if preferred, file a github issue at https://github.com/eafer/rdrview/issues. π
Credits to Readability.js by Mozilla; this tool is mostly a transpilation of their code done by hand. Respect. π₯
β¨ SEE ALSO β¨
Okay that's the whole page bestie, go forth and extract β¨πΈπ
rdrview 0.1.5 π October 2025 π β that's the version and date, mwah, bye! π π«Ά
π¦ where this page comes from
- nixos 26.05: rdrview 0.1.5
- nixpkgs unstable: rdrview 0.1.5
- Copyright (C) 2020 Ernesto A. FernΓ‘ndez <ernesto.mnd.fernandez@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms