Trait scrupy::item_pipeline::ItemPipeline
[−]
[src]
pub trait ItemPipeline: Send { type ItemType; fn process_item(
&mut self,
item: Self::ItemType
) -> ItemProduct<Self::ItemType>; fn open_spider(&mut self, spider: &Box<Spider<ItemType = Self::ItemType>>) { ... } fn close_spider(&mut self, spider: &Box<Spider<ItemType = Self::ItemType>>) { ... } }
Associated Types
type ItemType
Required Methods
fn process_item(&mut self, item: Self::ItemType) -> ItemProduct<Self::ItemType>
Called when an item is processed.
Provided Methods
fn open_spider(&mut self, spider: &Box<Spider<ItemType = Self::ItemType>>)
Called once when a spider is opened.
fn close_spider(&mut self, spider: &Box<Spider<ItemType = Self::ItemType>>)
Called once when a spider is closed.