Interface ScraperConfiguration
-
- All Known Implementing Classes:
ScraperConfigurationClassicImpl,ScraperConfigurationTriggeredImpl
public interface ScraperConfigurationinterface for basic configuration of scraper
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T> TfromFile(String path, Class<T> clazz)static <T> TfromJson(String json, Class<T> clazz)static <T> TfromYaml(String yaml, Class<T> clazz)List<JobConfigurationImpl>getJobConfigurations()List<ScrapeJob>getJobs()Map<String,String>getSources()
-
-
-
Method Detail
-
fromFile
static <T> T fromFile(String path, Class<T> clazz) throws IOException
- Throws:
IOException
-
getJobConfigurations
List<JobConfigurationImpl> getJobConfigurations()
-
getJobs
List<ScrapeJob> getJobs() throws ScraperException
- Throws:
ScraperException
-
-