638 stable releases

new 2.37.13 May 9, 2025
2.36.120 Apr 28, 2025
2.36.7 Mar 31, 2025
2.23.3 Dec 31, 2024
0.0.3 Sep 21, 2024

#779 in Command line utilities

Download history 685/week @ 2025-01-17 4146/week @ 2025-01-24 2084/week @ 2025-01-31 2028/week @ 2025-02-07 2252/week @ 2025-02-14 3096/week @ 2025-02-21 1119/week @ 2025-02-28 3218/week @ 2025-03-07 2423/week @ 2025-03-14 1661/week @ 2025-03-21 2710/week @ 2025-03-28 2963/week @ 2025-04-04 2156/week @ 2025-04-11 4807/week @ 2025-04-18 2790/week @ 2025-04-25 1307/week @ 2025-05-02

11,097 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
~643K SLoC