{"id":16221553,"url":"https://github.com/pombadev/node2text","last_synced_at":"2026-02-13T05:06:39.263Z","repository":{"id":57645329,"uuid":"378176659","full_name":"pombadev/node2text","owner":"pombadev","description":"Parse HTML in your terminal","archived":false,"fork":false,"pushed_at":"2021-11-10T04:44:57.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T10:04:23.320Z","etag":null,"topics":["cli","command-line","command-line-tool","commandline","css-selector-parser","css-selectors","html","rust","rust-crate","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pombadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-18T14:30:21.000Z","updated_at":"2024-07-10T17:44:07.000Z","dependencies_parsed_at":"2022-08-30T14:30:27.765Z","dependency_job_id":null,"html_url":"https://github.com/pombadev/node2text","commit_stats":null,"previous_names":["pjmp/node2text"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pombadev%2Fnode2text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pombadev%2Fnode2text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pombadev%2Fnode2text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pombadev%2Fnode2text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pombadev","download_url":"https://codeload.github.com/pombadev/node2text/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755591,"owners_count":20990626,"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","command-line","command-line-tool","commandline","css-selector-parser","css-selectors","html","rust","rust-crate","rust-lang"],"created_at":"2024-10-10T12:08:46.331Z","updated_at":"2025-10-25T22:31:28.316Z","avatar_url":"https://github.com/pombadev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node2text [![Crates.io](https://img.shields.io/crates/v/node2text)](https://crates.io/crates/node2text) ![License](https://img.shields.io/crates/l/node2text)\n\u003e A tool to extract text from HTML from your terminal.\n\n# Usage\n\n```bash\n# pipe in\ncurl -s 'https://en.wikipedia.org/wiki/Wiki' | node2text '#siteSub'\n# Outputs: From Wikipedia, the free encyclopedia\n\n# extract from path\nnode2text '#app.title' /path/to/file.html\n# May or may not output depending on if selector is matched\n```\n\n# Motivation\n\nWhen I reinstall my machine, I want to automate my install process. Usually it involves quickly grabbing snippet from the internet and writing it to file, this tool aims to help script it.\n\nHugely inspired by [pup](https://github.com/ericchiang/pup).\n\n# Demo\n\n[![demo](./assets/demo.svg)](./assets/demo.svg)\n\n# Installation\n\nIf you have rust toolchain installed, `node2text` is available on [crates.io](https://crates.io/crates/node2text), if you don't have rust toolchain installed, please install rust by going to the [official website](https://www.rust-lang.org/tools/install).\n\nRun\n\n```bash\ncargo install node2text\n```\n\n# Note\n\nPiping will always take precedence even if `\u003cpath\u003e` is provided.\n\n# Comparison with [pup](https://github.com/ericchiang/pup):\n\n`node2text`\n- Selectors are purely CSS selectors, no dsl\n- Takes html, spits out text\n- Written in rust programming language\n- Less features than `pup`\n- Outputs are not escaped\n\n`pup`\n- Selectors are CSS selectors plus dsl\n- Takes html, spits out text, json, html\n- Written in go programming language\n- Has many features, visit their github page to know more\n- Outputs are escaped\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpombadev%2Fnode2text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpombadev%2Fnode2text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpombadev%2Fnode2text/lists"}