MobileScraper constructor
MobileScraper({
- required String url,
- ScraperConfig config = ScraperConfig.defaultConfig,
Creates a new MobileScraper instance with the given URL and optional configuration.
Throws UnsupportedPlatformException if the current platform is not Android or iOS. Throws InvalidParameterException if the URL is invalid.
Implementation
MobileScraper({
required this.url,
this.config = ScraperConfig.defaultConfig,
}) {
_validatePlatform();
_validateUrl();
_client = http.Client();
_initializeCache();
}