Interface PrivacyContext
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public interface PrivacyContext implements AutoCloseable
A privacy context is a unique context of a privacy agent to the target website, it will be closed once it is leaked.
One of the biggest difficulties in web scraping tasks is the bot stealth.
For web scraping tasks, the website should have no idea whether a visit is from a human being or a bot. Once a page visit is suspected by the website, which we call a privacy leak, the privacy context has to be dropped, and Pulsar will visit the page in another privacy context.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPrivacyContext.Companion
-
Method Summary
-
-
Method Detail
-
buildStatusString
abstract String buildStatusString()
-
promisedWebDriverCount
abstract Integer promisedWebDriverCount()
-
hasWebDriverPromise
abstract Boolean hasWebDriverPromise()
-
open
abstract FetchResult open(String url)
-
open
abstract FetchResult open(String url, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)
-
open
abstract FetchResult open(String url, LoadOptions options)
-
run
abstract FetchResult run(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)
-
doRun
abstract FetchResult doRun(FetchTask task, SuspendFunction2<FetchTask, WebDriver, FetchResult> fetchFun)
-
buildReport
abstract String buildReport()
-
getFailureRate
abstract Float getFailureRate()
-
isHighFailureRate
abstract Boolean isHighFailureRate()
-
getIdleTime
abstract Duration getIdleTime()
-
getElapsedTime
abstract Duration getElapsedTime()
-
isFullCapacity
abstract Boolean isFullCapacity()
-
isUnderLoaded
abstract Boolean isUnderLoaded()
-
getId
abstract PrivacyAgentId getId()
-
getDisplay
abstract String getDisplay()
-
getReadableState
abstract String getReadableState()
-
getPrivacyAgent
abstract PrivacyAgent getPrivacyAgent()
-
-
-
-