{"id":14992294,"url":"https://github.com/lonexw/rust-crawler","last_synced_at":"2025-09-25T14:31:07.732Z","repository":{"id":205955431,"uuid":"514167315","full_name":"lonexw/rust-crawler","owner":"lonexw","description":"A  simple crawler, built with Rust lang.","archived":false,"fork":false,"pushed_at":"2024-04-02T12:56:45.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-25T16:10:16.919Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/lonexw.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}},"created_at":"2022-07-15T06:56:55.000Z","updated_at":"2023-04-03T10:08:53.000Z","dependencies_parsed_at":"2023-11-07T09:50:00.363Z","dependency_job_id":null,"html_url":"https://github.com/lonexw/rust-crawler","commit_stats":null,"previous_names":["lonexw/rust-crawler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonexw%2Frust-crawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonexw%2Frust-crawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonexw%2Frust-crawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lonexw%2Frust-crawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lonexw","download_url":"https://codeload.github.com/lonexw/rust-crawler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234200176,"owners_count":18795139,"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":[],"created_at":"2024-09-24T15:00:54.982Z","updated_at":"2025-09-25T14:31:02.400Z","avatar_url":"https://github.com/lonexw.png","language":"Rust","funding_links":[],"categories":["Web Crawler"],"sub_categories":[],"readme":"# rust-crawler\n\n\u003e 說明：這個項目構建階段，是我初步學習 Rust 構建項目的時期，基本很多地方都在模仿複製，僅作爲學習用途。\n\n參考項目和學習資料來源：\n\n- https://kerkour.com/rust-crawler-implementation\n- https://github.com/mattsse/voyager\n- https://kaisery.github.io/trpl-zh-cn/title-page.html\n- https://course.rs/about-book.html\n- https://rusty.rs/about.html\n- https://github.com/rustlang-cn/async-book\n\n## 爬虫程序设计\n\nWhy use Rust?\n1. Async I/O Model, best performance possible when making requests.\n2. Memory-related performance.\n3. Safety when parsing.\n4. Associated types.\n5. 并发支持\n6. 学习构建 rust project\n\n业务架构示意图\n\n- Crawler 爬虫：负责对访问的 url 列表进行管理，获取网页响应；\n\t- Control loop：queue urls\n\n\n1）构建一个 CrawlerConfig 来对 Crawler 进行参数配置和初始化\n\t- 默认值和便捷方法\n\t- allow or disallow domain\n\t- concurrent_requests\n2）需要构建一个 Crawler 结构体来实现主体功能\n\n依赖库：\n- 网络请求库：reqwest\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonexw%2Frust-crawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flonexw%2Frust-crawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flonexw%2Frust-crawler/lists"}