SpecializedHeadlessHandlers class
Specialized handlers for problematic sites using headless browser
Constructors
- SpecializedHeadlessHandlers.new({HeadlessBrowserService? service, ScrapingLogger? logger})
- Creates a new SpecializedHeadlessHandlers instance
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Disposes the handlers
-
handleClickInteractionSite(
String url, {Map< String, String> ? headers, Map<String, String> ? selectors, Map<String, String> ? attributes, int? timeoutMillis, String? clickSelector, int clickDelay = 1000, int maxClicks = 1}) → Future<HeadlessBrowserResult> - Handles a site that requires clicking elements
-
handleFormSubmissionSite(
String url, {Map< String, String> ? headers, Map<String, String> ? selectors, Map<String, String> ? attributes, int? timeoutMillis, required Map<String, String> formData, String? formSelector, String? submitSelector, int waitAfterSubmit = 3000}) → Future<HeadlessBrowserResult> - Handles a site that requires form submission
-
handleInfiniteScrollingSite(
String url, {Map< String, String> ? headers, Map<String, String> ? selectors, Map<String, String> ? attributes, int? timeoutMillis, int maxScrolls = 10, int scrollDelay = 1000, String? itemSelector}) → Future<HeadlessBrowserResult> - Handles a site that uses infinite scrolling
-
handleJavaScriptSite(
String url, {Map< String, String> ? headers, Map<String, String> ? selectors, Map<String, String> ? attributes, int? timeoutMillis}) → Future<HeadlessBrowserResult> - Handles a site that requires JavaScript
-
handleLazyLoadingSite(
String url, {Map< String, String> ? headers, Map<String, String> ? selectors, Map<String, String> ? attributes, int? timeoutMillis, int scrollCount = 5, int scrollDelay = 1000}) → Future<HeadlessBrowserResult> - Handles a site that uses lazy loading
-
initialize(
) → Future< void> - Initializes the handlers
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited