Trait hyraigne::Site[][src]

pub trait Site {
    fn get_series(&self, url: &Url) -> Result<Series>;
fn get_chapters<'a>(
        &self,
        series: &'a Series,
        filter: Filter
    ) -> Result<Vec<Chapter<'a>>>;
fn get_pages<'a>(&self, chapter: &'a Chapter<'_>) -> Result<Vec<Page<'a>>>;
fn mkdir(&self, chapters: &[Chapter<'_>]) -> Result<()>;
fn download(&self, pages: &[Page<'_>]) -> Result<()>; }

A website scraper.

Required methods

fn get_series(&self, url: &Url) -> Result<Series>[src]

Fetch the series at url.

fn get_chapters<'a>(
    &self,
    series: &'a Series,
    filter: Filter
) -> Result<Vec<Chapter<'a>>>
[src]

Fetch the chapters of series and filter them as specified.

fn get_pages<'a>(&self, chapter: &'a Chapter<'_>) -> Result<Vec<Page<'a>>>[src]

Fetch the pages of the given chapter.

fn mkdir(&self, chapters: &[Chapter<'_>]) -> Result<()>[src]

Create the required directory hierarchy to download the pages.

fn download(&self, pages: &[Page<'_>]) -> Result<()>[src]

Download the given pages.

Loading content...

Implementors

Loading content...