Skip to main content

Crate spider_macro

Crate spider_macro 

Source
Expand description

Procedural macro for spider-lib to simplify ScrapedItem implementation.

This module provides the #[scraped_item] attribute macro, which automatically derives the necessary traits and implementations for a struct to be used as a ScrapedItem within the spider-lib framework.

By applying this macro to a struct, users can easily define their data structures for scraped items, reducing boilerplate code for serialization, deserialization, cloning, and type conversions required by the library’s item processing pipeline.

Attribute Macros§

scraped_item
A procedural macro to derive the ScrapedItem trait.