Trait hyraigne::Site [−][src]
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]
&self,
series: &'a Series,
filter: Filter
) -> Result<Vec<Chapter<'a>>>
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.