{"id":23658956,"url":"https://github.com/jethronap/rust-webscraper","last_synced_at":"2025-11-28T20:30:13.533Z","repository":{"id":269982379,"uuid":"909036015","full_name":"jethronap/rust-webscraper","owner":"jethronap","description":"A rudimentary web scraper written in Rust","archived":false,"fork":false,"pushed_at":"2025-01-08T21:57:08.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T22:36:22.004Z","etag":null,"topics":["cli","rust-lang","webscraper"],"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/jethronap.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-27T15:37:58.000Z","updated_at":"2025-01-08T21:57:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ae6c8fb-420f-4526-9438-66c91b717d3a","html_url":"https://github.com/jethronap/rust-webscraper","commit_stats":null,"previous_names":["jethronap/rust-webscraper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jethronap%2Frust-webscraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jethronap%2Frust-webscraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jethronap%2Frust-webscraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jethronap%2Frust-webscraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jethronap","download_url":"https://codeload.github.com/jethronap/rust-webscraper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239644165,"owners_count":19673578,"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","rust-lang","webscraper"],"created_at":"2024-12-29T01:48:22.323Z","updated_at":"2025-11-28T20:30:13.480Z","avatar_url":"https://github.com/jethronap.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Webscraper\n\nThis is a simple webscraper written in Rust. It allows you to fetch and parse HTML content from web pages.\n\n## Features\n\n- Fetch HTML content from a given URL\n- Parse and extract data from HTML\n\n## Requirements\n\n- Rust (latest stable version)\n\n## Installation\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/yourusername/rust-webscraper.git\n    ```\n2. Navigate to the project directory:\n    ```sh\n    cd rust-webscraper\n    ```\n3. Build the project:\n    ```sh\n    cargo build\n    ```\n\n## Usage\n\nRun the webscraper with a target URL a designated timeout and css selector:\n```sh\ncargo run -- --url https://example.com --timeout 15 --selector a\n```\n\nRun the websraper without cli arguments:\n```sh\ncargo run\n```\n\nThe scraper will use the default values provided in the [configuration file](/config.toml).\n\nCurrently, the scraper saves extracted data to a `.json` file inside a `backup` folder at the root of the project. \n\nBelow is a excerpt of the output when run without any args. \n\n```json\n[\n...\n\n  {\n    \"tag\": \"a\",\n    \"content\": \"\\n        Read Contribution Guide\\n      \",\n    \"attributes\": {\n      \"class\": \"button button-secondary\",\n      \"href\": \"https://rustc-dev-guide.rust-lang.org/getting-started.html\"\n    }\n  },\n  {\n    \"tag\": \"a\",\n    \"content\": \"See individual contributors\",\n    \"attributes\": {\n      \"class\": \"button button-secondary\",\n      \"href\": \"https://thanks.rust-lang.org/\"\n    }\n  },\n  {\n    \"tag\": \"a\",\n    \"content\": \"See Foundation members\",\n    \"attributes\": {\n      \"class\": \"button button-secondary\",\n      \"href\": \"https://foundation.rust-lang.org/members\"\n    }\n  },\n  {\n    \"tag\": \"a\",\n    \"content\": \"Documentation\",\n    \"attributes\": {\n      \"href\": \"/learn\"\n    }\n  },\n  {\n    \"tag\": \"a\",\n    \"content\": \"Rust Forge (Contributor Documentation)\",\n    \"attributes\": {\n      \"href\": \"http://forge.rust-lang.org\"\n    }\n  },\n  {\n    \"tag\": \"a\",\n    \"content\": \"Ask a Question on the Users Forum\",\n    \"attributes\": {\n      \"href\": \"https://users.rust-lang.org\"\n    }\n  },\n  {\n    \"tag\": \"a\",\n    \"content\": \"Code of Conduct\",\n    \"attributes\": {\n      \"href\": \"/policies/code-of-conduct\"\n    }\n  },\n  {\n    \"tag\": \"a\",\n    \"content\": \"Licenses\",\n    \"attributes\": {\n      \"href\": \"/policies/licenses\"\n    }\n  },\n  {\n    \"tag\": \"a\",\n    \"content\": \"Logo Policy and Media Guide\",\n    \"attributes\": {\n      \"href\": \"https://foundation.rust-lang.org/policies/logo-policy-and-media-guide/\"\n    }\n  },\n  ...\n]\n```\n\n## Testing\nUse the following command to run the unit tests\n```sh\ncargo test\n```\n\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjethronap%2Frust-webscraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjethronap%2Frust-webscraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjethronap%2Frust-webscraper/lists"}