MobileScraper constructor

MobileScraper({
  1. required String url,
  2. 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();
}