{"id":17447862,"url":"https://github.com/pmuens/crawler","last_synced_at":"2025-05-15T10:34:35.113Z","repository":{"id":146810465,"uuid":"305066531","full_name":"pmuens/crawler","owner":"pmuens","description":"Multi-threaded Web crawler with support for custom fetching and persisting logic","archived":false,"fork":false,"pushed_at":"2020-10-18T09:32:16.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T10:47:51.794Z","etag":null,"topics":["crawler","crawler-engine","rust","rust-lang","web-crawler","web-crawling"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmuens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-10-18T09:31:56.000Z","updated_at":"2020-10-18T10:25:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"39b59274-c406-4e61-9494-4bb93b503fdf","html_url":"https://github.com/pmuens/crawler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuens%2Fcrawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuens%2Fcrawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuens%2Fcrawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmuens%2Fcrawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmuens","download_url":"https://codeload.github.com/pmuens/crawler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254323126,"owners_count":22051726,"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":["crawler","crawler-engine","rust","rust-lang","web-crawler","web-crawling"],"created_at":"2024-10-17T19:55:58.219Z","updated_at":"2025-05-15T10:34:35.086Z","avatar_url":"https://github.com/pmuens.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `Crawler`\n\nMulti-threaded Web crawler with support for custom fetching and persisting logic.\n\n## Usage\n\n**NOTE:** See the crates documentation for more info.\n\n### As a binary\n\nThe following command will run the crawler with `10` threads, starting with the URL `http://example.com` and storing the visited websites as files in the `./crawlings` directory.\n\n```shell script\ncargo run --bin crawler http://example.com ./crawlings 10\n```\n\n### As a library\n\n```rust\nextern crate crawler;\n\nuse crawler::traits::{Fetch, Persist};\nuse crawler::crawler::Crawler;\n\n// ... trait implementations for `Fetch` and `Persist`\n\nfn main() {\n    let url = \"http://example.com\";\n    let num_threads: usize = 2;\n\n    let persister = YourPersister::new();\n    let fetcher = YourFetcher::new();\n\n    let mut crawler = Crawler::new(persister, fetcher, num_threads);\n    let _result = crawler.start(url);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmuens%2Fcrawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmuens%2Fcrawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmuens%2Fcrawler/lists"}