{"id":17667727,"url":"https://github.com/octopus773/tsinghua_wir_crawler","last_synced_at":"2025-03-30T13:13:44.880Z","repository":{"id":94752456,"uuid":"607934854","full_name":"Octopus773/Tsinghua_WIR_crawler","owner":"Octopus773","description":"Crawler that scrap Google and Bing results (title, link, description)","archived":false,"fork":false,"pushed_at":"2023-03-05T09:08:47.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T14:47:36.440Z","etag":null,"topics":["rust"],"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/Octopus773.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":"2023-03-01T01:04:42.000Z","updated_at":"2023-03-20T17:32:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"21ef29fc-51b8-413b-be3e-2469777d8a29","html_url":"https://github.com/Octopus773/Tsinghua_WIR_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/Octopus773%2FTsinghua_WIR_crawler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Octopus773%2FTsinghua_WIR_crawler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Octopus773%2FTsinghua_WIR_crawler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Octopus773%2FTsinghua_WIR_crawler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Octopus773","download_url":"https://codeload.github.com/Octopus773/Tsinghua_WIR_crawler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246320200,"owners_count":20758410,"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":["rust"],"created_at":"2024-10-23T22:22:56.390Z","updated_at":"2025-03-30T13:13:44.859Z","avatar_url":"https://github.com/Octopus773.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tsinghua Search Engine Crawler\n## Project made as Assignment 1 of Web Information Retrieval course 2023\n\n### Description\n\nThis is a crawler made in Rust that fetches and parse Google and Bing search results.\nLibraries used are:\n- Tokio (async)\n- Reqwest (HTTP requests)\n- Scraper (HTML parsing and selection)\n- Serde (JSON serialization and deserialization)\n\nStdout output:\n```\nResults from Bing, 10:\n=========================\n\nTitle: \"A practical guide to async in Rust - LogRocket Blog\"\nUrl: \"https://blog.logrocket.com/a-practical-guide-to-async-in-rust/\"\nDescription: \"Jun 25, 2020\\u{a0}· Rust targets everything from bare-metal, embedded devices to programs running on advanced operating systems and, …\"\n\nTitle: \"rust - What does 'Zero Cost Abstraction' mean? - Stack …\"\nUrl: \"https://stackoverflow.com/questions/69178380/what-does-zero-cost-abstraction-mean\"\nDescription: \"Sep 13, 2021\\u{a0}· Zero Cost Abstractions means adding higher-level programming concepts, like generics, collections and so on do not come with a run-time cost, only compile …\"\n```\n\n### How to run\n\nTo run the project, you need to have Rust installed on your machine.\nThen, you can run the project with the following command:\n\n```bash\ncargo run query_design_file [save]\n```\nNote: Built binaries will be located in the target/debug folder. (target/release if you use the --release flag)\n\n\nQuery design file is a file that contains the queries to be made to the search engines.\nThe file must be in the following format:\n```json\n[\n    {\"queryNum\": 1, \"query\": \"Why is rust memory safe ?\", \"description\": \"I want to learn rust borrow checker\"},\n    {\"queryNum\": 2, \"query\": \"What is Wayland and the main departures from X11 rendering\", \"description\": \"My new game is allowing me to choose between the two\"}\n]\n```\nThe save parameter is optional and if present, the SE results will be saved as files in the root and search results in the `results_website_data` folder also located at the root.\n\nSE_*.json example, the description fireld is nullable when it fails to parse it or find it\n```json\n[\n  {\n    \"title\": \"Rust (programming language) - Wikipedia\",\n    \"url\": \"https://en.wikipedia.org/wiki/Rust_(programming_language)#:~:text=Rust%20is%20designed%20to%20be,inputs%20to%20be%20already%20initialized.\",\n    \"description\": \"Rust is designed to be memory safe. It does not permit null pointers, dangling pointers, or data races. Data values can be initialized only through a fixed set of forms, all of which require their inputs to be already initialized.À propos des extraits optimisés•Commentaires\"\n  },\n  {\n    \"title\": \"Why Safe Programming Matters and Why a Language Like ...\",\n    \"url\": \"https://developer.okta.com/blog/2022/03/18/programming-security-and-why-rust\",\n    \"description\": \"18 mars 2022 — Rust ensures memory safety at compile time using its innovative ownership mechanism and the borrow checker built into the compiler. The compiler ...\"\n  }\n]\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctopus773%2Ftsinghua_wir_crawler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctopus773%2Ftsinghua_wir_crawler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctopus773%2Ftsinghua_wir_crawler/lists"}