Giter Club home page Giter Club logo

rust-crawler's Introduction

rust-crawler

說明:這個項目構建階段,是我初步學習 Rust 構建項目的時期,基本很多地方都在模仿複製,僅作爲學習用途。

參考項目和學習資料來源:

爬虫程序设计

Why use Rust?

  1. Async I/O Model, best performance possible when making requests.
  2. Memory-related performance.
  3. Safety when parsing.
  4. Associated types.
  5. 并发支持
  6. 学习构建 rust project

业务架构示意图

  • Crawler 爬虫:负责对访问的 url 列表进行管理,获取网页响应;
    • Control loop:queue urls

1)构建一个 CrawlerConfig 来对 Crawler 进行参数配置和初始化 - 默认值和便捷方法 - allow or disallow domain - concurrent_requests 2)需要构建一个 Crawler 结构体来实现主体功能

依赖库:

  • 网络请求库:reqwest

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.