{"id":13440301,"url":"https://gitlab.com/pwoolcoc/soup","last_synced_at":"2025-03-20T09:32:45.932Z","repository":{"id":57667987,"uuid":"9175287","full_name":"pwoolcoc/soup","owner":"pwoolcoc","description":"Like BeautifulSoup, but for rust","archived":false,"fork":false,"pushed_at":null,"size":null,"stargazers_count":42,"open_issues_count":15,"forks_count":4,"subscribers_count":null,"default_branch":"master","last_synced_at":"2025-03-12T02:46:36.624Z","etag":null,"topics":["rust"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":null,"metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-02T01:35:31.614Z","updated_at":"2025-01-17T16:09:10.060Z","dependencies_parsed_at":"2022-09-07T15:41:59.039Z","dependency_job_id":null,"html_url":"https://gitlab.com/pwoolcoc/soup","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/pwoolcoc%2Fsoup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/pwoolcoc%2Fsoup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/pwoolcoc%2Fsoup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/pwoolcoc%2Fsoup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners/pwoolcoc","download_url":"https://gitlab.com/pwoolcoc/soup/-/archive/master/soup-master.zip","host":{"name":"gitlab.com","url":"https://gitlab.com","kind":"gitlab","repositories_count":4518183,"owners_count":6877,"icon_url":"https://github.com/gitlab.png","version":null,"created_at":"2022-05-30T11:31:42.605Z","updated_at":"2024-07-18T11:24:13.055Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners"}},"keywords":["rust"],"created_at":"2024-07-31T03:01:21.520Z","updated_at":"2025-03-20T09:32:45.438Z","avatar_url":null,"language":null,"funding_links":[],"categories":["Libraries","库 Libraries","库"],"sub_categories":["Web programming","网络编程 Web programming","网页编程","web编程 Web programming"],"readme":"= Soup\n\nInspired by the python library https://www.crummy.com/software/BeautifulSoup/bs4/doc/[BeautifulSoup], this is a layer on top of https://github.com/servo/html5ever[html5ever]\nthat adds a different API for querying \u0026 manipulating HTML\n\nhttps://docs.rs/soup[Documentation (latest release)]\n\nhttp://pwoolcoc.gitlab.io/soup/[Documentation (master)]\n\n== Installation\n\nIn order to use, add the following to your `Cargo.toml`:\n\n----\n[dependencies]\nsoup = \"0.5\"\n----\n\n== Usage\n\n----\n// src/main.rs\nextern crate reqwest;\nextern crate soup;\n\nuse std::error::Error;\n\nuse reqwest;\nuse soup::prelude::*;\n\nfn main() -\u003e Result\u003c(), Box\u003cError\u003e\u003e {\n    let response = reqwest::get(\"https://google.com\")?;\n    let soup = Soup::from_reader(response);\n    let some_text = soup.tag(\"p\")\n\t\t\t.attr(\"class\", \"hidden\")\n\t\t\t.find()\n\t\t\t.and_then(|p| p.text());\n    OK(())\n}\n\n----\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fpwoolcoc%2Fsoup","html_url":"https://awesome.ecosyste.ms/projects/gitlab.com%2Fpwoolcoc%2Fsoup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fpwoolcoc%2Fsoup/lists"}