mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 16:15:32 +02:00
make image downloader public
This commit is contained in:
parent
efd36dff66
commit
f1be8a2608
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ use self::error::{
|
||||||
|
|
||||||
|
|
||||||
pub struct ArticleScraper {
|
pub struct ArticleScraper {
|
||||||
image_downloader: ImageDownloader,
|
pub image_downloader: ImageDownloader,
|
||||||
config_files: ConfigCollection,
|
config_files: ConfigCollection,
|
||||||
client: reqwest::Client,
|
client: reqwest::Client,
|
||||||
pub download_images: bool,
|
pub download_images: bool,
|
||||||
|
@ -54,7 +54,7 @@ impl ArticleScraper {
|
||||||
let config_files = GrabberConfig::parse_directory(&config_path).context(ScraperErrorKind::Config)?;
|
let config_files = GrabberConfig::parse_directory(&config_path).context(ScraperErrorKind::Config)?;
|
||||||
|
|
||||||
Ok(ArticleScraper {
|
Ok(ArticleScraper {
|
||||||
image_downloader: ImageDownloader::new((2000, 2000)),
|
image_downloader: ImageDownloader::new((2048, 2048)),
|
||||||
config_files: config_files,
|
config_files: config_files,
|
||||||
client: reqwest::Client::new(),
|
client: reqwest::Client::new(),
|
||||||
download_images: download_images,
|
download_images: download_images,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue