ScrapingJob class

A scraping job

Constructors

ScrapingJob.new({required String id, required String url, required int interval, required Map<String, String> selectors, Map<String, String?>? attributes, required int lastRun})
Creates a new ScrapingJob with the given parameters
ScrapingJob.fromJson(Map<String, dynamic> json)
Creates a ScrapingJob from a JSON map
factory

Properties

attributes Map<String, String?>?
The attributes to extract (optional)
final
hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier for the job
final
interval int
The interval between runs in milliseconds
final
lastRun int
The timestamp of the last run
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectors Map<String, String>
The CSS selectors to use
final
url String
The URL to scrape
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the job to a JSON map
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited