581 stable releases

new 2.36.78 Apr 19, 2025
2.36.7 Mar 31, 2025
2.23.3 Dec 31, 2024
2.13.84 Nov 30, 2024
0.0.3 Sep 21, 2024

#785 in Command line utilities

Download history 1751/week @ 2024-12-28 1968/week @ 2025-01-04 1252/week @ 2025-01-11 1131/week @ 2025-01-18 3889/week @ 2025-01-25 2433/week @ 2025-02-01 1797/week @ 2025-02-08 3078/week @ 2025-02-15 2069/week @ 2025-02-22 1499/week @ 2025-03-01 3061/week @ 2025-03-08 2184/week @ 2025-03-15 2138/week @ 2025-03-22 2614/week @ 2025-03-29 2900/week @ 2025-04-05 3705/week @ 2025-04-12

11,523 downloads per month
Used in spider_utils

MIT license

205KB
5K SLoC

spider_transformations

The Rust spider cloud transformation library built for performance, AI, and multiple locales. The library is used on Spider Cloud for data cleaning.

Usage

[dependencies]
spider_transformations = "2"
use spider_transformations::transformation::content;

fn main() {
    // page comes from the spider object when streaming.
    let mut conf = content::TransformConfig::default();
    conf.return_format = content::ReturnFormat::Markdown;
    let content = content::transform_content(&page, &conf, &None, &None);
}

Transfrom types

  1. Markdown
  2. Commonmark
  3. Text
  4. Markdown (Text Map) or HTML2Text
  5. WIP: HTML2XML

Enhancements

  1. Readability
  2. Encoding

Chunking

There are several chunking utils in the transformation mod.

This project has rewrites and forks of html2md, and html2text for performance and bug fixes.

License

MIT

Dependencies

~22–37MB
~640K SLoC