{"id":35012715,"url":"https://github.com/fefit/visdom","last_synced_at":"2025-12-27T05:04:00.099Z","repository":{"id":43714879,"uuid":"327797369","full_name":"fefit/visdom","owner":"fefit","description":"A library use jQuery like API for html parsing \u0026 node selecting \u0026 node mutation, suitable for web scraping and html confusion.","archived":false,"fork":false,"pushed_at":"2025-10-29T03:13:40.000Z","size":672,"stargazers_count":113,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-02T15:21:54.750Z","etag":null,"topics":["confuse","css-selector","dom-manipulation","html-parse","jquery","rust","scrape"],"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/fefit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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}},"created_at":"2021-01-08T04:22:22.000Z","updated_at":"2025-10-29T03:13:44.000Z","dependencies_parsed_at":"2024-10-27T10:41:02.351Z","dependency_job_id":"182985b6-9b19-4deb-b2a0-0ba212ce2ee0","html_url":"https://github.com/fefit/visdom","commit_stats":{"total_commits":181,"total_committers":3,"mean_commits":"60.333333333333336","dds":"0.33149171270718236","last_synced_commit":"e6c683abc9c57d4415933a0957f038b3b93e3f44"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/fefit/visdom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fefit%2Fvisdom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fefit%2Fvisdom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fefit%2Fvisdom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fefit%2Fvisdom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fefit","download_url":"https://codeload.github.com/fefit/visdom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fefit%2Fvisdom/sbom","scorecard":{"id":395713,"data":{"date":"2025-08-11","repo":{"name":"github.com/fefit/visdom","commit":"5142b31c0b4d24ed5eab69bcf9263748d12f664e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Maintained","score":9,"reason":"11 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":2,"reason":"Found 4/18 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/rust.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/fefit/visdom/rust.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/fefit/visdom/rust.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/fefit/visdom/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/fefit/visdom/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/fefit/visdom/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/fefit/visdom/test.yml/main?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/test.yml:41","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GHSA-q8pj-2vqx-8ggc","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T18:57:14.171Z","repository_id":43714879,"created_at":"2025-08-18T18:57:14.171Z","updated_at":"2025-08-18T18:57:14.171Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28072688,"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","status":"online","status_checked_at":"2025-12-27T02:00:05.897Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["confuse","css-selector","dom-manipulation","html-parse","jquery","rust","scrape"],"created_at":"2025-12-27T05:02:19.327Z","updated_at":"2025-12-27T05:04:00.088Z","avatar_url":"https://github.com/fefit.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\n\u003cstrong\u003eVisdom\u003c/strong\u003e\n\n[![Build status](https://github.com/fefit/visdom/actions/workflows/test.yml/badge.svg)](https://github.com/fefit/visdom/actions)\n[![crates.io](https://img.shields.io/crates/v/visdom.svg)](https://crates.io/crates/visdom)\n[![tag](https://img.shields.io/github/v/tag/fefit/visdom.svg?sort=semver)](https://github.com/fefit/visdom/tags)\n[![codecov](https://codecov.io/gh/fefit/visdom/branch/main/graph/badge.svg)](https://codecov.io/gh/fefit/visdom)\n[![Crates download](https://img.shields.io/crates/d/visdom.svg)](https://crates.io/crates/visdom)\n[![docs.rs](https://img.shields.io/badge/docs.rs-visdom-green)](https://docs.rs/visdom/latest)\n[![GitHub license](https://img.shields.io/github/license/fefit/visdom)](https://github.com/fefit/visdom/blob/main/LICENSE)\n\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003e\n\n[API Document](https://github.com/fefit/visdom/wiki/API-Document)\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n[Performance](https://github.com/fefit/visdom/blob/main/performance/README.md)\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n[中文 API 文档](https://github.com/fefit/visdom/wiki/%E4%B8%AD%E6%96%87API%E6%96%87%E6%A1%A3)\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n[更新文档](https://github.com/fefit/visdom/blob/main/CHANGELOG.md)\n\n\u003c/h4\u003e\n\u003cp\u003e\n:house:  A html parsing \u0026 node selecting and mutation library written in Rust, using APIs similar to \u003ca href=\"https://www.jquery.com\" target=\"_blank\"\u003ejQuery\u003c/a\u003e, left off the parts thoes only worked in the browsers(e.g. render and event related methods).\n\nIt's not only helpful for the working with html scraping, but also have useful APIs to mutate `text` nodes, so you can use it for mixing your html with dirty html fragement, and keep the web scrapers away. :sparkling_heart:\n\n\u003c/p\u003e\n\n## Usage\n\n```rust\nuse visdom::Vis;\nuse visdom::types::BoxDynError;\n\nfn main() -\u003e Result\u003c(), BoxDynError\u003e{\n  let html = r##\"\n    \u003c!DOCTYPE html\u003e\n    \u003chtml\u003e\n      \u003chead\u003e\n        \u003cmeta charset=\"utf-8\" /\u003e\n      \u003c/head\u003e\n      \u003cbody\u003e\n        \u003cnav id=\"header\"\u003e\n          \u003cul\u003e\n            \u003cli\u003eHello,\u003c/li\u003e\n            \u003cli\u003eVis\u003c/li\u003e\n            \u003cli\u003eDom\u003c/li\u003e\n          \u003c/ul\u003e\n        \u003c/nav\u003e\n      \u003c/body\u003e\n    \u003c/html\u003e\n  \"##;\n  // load html\n  let root = Vis::load(html)?;\n  let lis = root.find(\"#header li\");\n  let lis_text = lis.text();\n  println!(\"{}\", lis_text);\n  // will output \"Hello,VisDom\"\n  Ok(())\n}\n```\n\n[Try it online](http://visdom.suchjs.com/#hello)\n\n## Feature flags\n\nAfter version v0.5.0, visdom add some feature flags to support conditional compilation for different usage.\n\n| Feature     | Description                                                                         | API                                                                                                                          | Config                                                |\n| :---------- | :---------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------- | :---------------------------------------------------- |\n| `destroy`   | When you don't need remove or clear the elements, you can ignore this feature flag. | `.remove()` `.empty()` (IElementTrait) `remove_child()` `clone()`                                                            | `visdom = { version = xxx, features = [\"destroy\"]}`   |\n| `insertion` | When you don't need mutation the DOM, you can ignore this feature flag.             | `append()` `append_to()` `prepend()` `prepend_to()` `insert_after()` `after()` `insert_before()` `before()` `replace_with()` | `visdom = { version = xxx, features = [\"insertion\"]}` |\n| `text`      | When you don't need mutation the TextNode, you can ignore this feature flag.        | `.texts()` `.texts_by()` `texts_by_rec()`                                                                                    | `visdom = { version = xxx, features = [\"text\"]}`      |\n| `full`      | When you need all the API above, you can open this feature flag.                    | -                                                                                                                            | `visdom = { version = xxx, features = [\"full\"]}`      |\n\n## Depedencies\n\n- Html parser：[https://github.com/fefit/rphtml](https://github.com/fefit/rphtml)\n- Html entity encoding and decoding：[https://github.com/fefit/htmlentity](https://github.com/fefit/htmlentity)\n\n## Questions \u0026 Advices \u0026 Bugs?\n\nWelcome to report [Issue](https://github.com/fefit/visdom/issues) to us if you have any question or bug or good advice.\n\n## License\n\n[MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffefit%2Fvisdom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffefit%2Fvisdom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffefit%2Fvisdom/lists"}