Documentation
¶
Index ¶
- Variables
- type Runner
- type RunnerOpt
- func Annoyances(values []string) RunnerOpt
- func CookieFile(file string) RunnerOpt
- func CsvOutput() RunnerOpt
- func Dailyimit(l int) RunnerOpt
- func Debug(b bool) RunnerOpt
- func FetchCredits(b bool) RunnerOpt
- func Headless(b bool) RunnerOpt
- func JsonOutput() RunnerOpt
- func OutputDir(outputDir string) RunnerOpt
- func SaveProgress(b bool) RunnerOpt
- func Stealth(s bool) RunnerOpt
- func Tab(tab string) RunnerOpt
- func Timeout(t time.Duration) RunnerOpt
- func VpnManager(v *openvpn.Manager) RunnerOpt
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner is a type that manages and orchestrates the process of scraping leads from Apollo.
type RunnerOpt ¶
type RunnerOpt func(r *Runner)
RunnerOpt represents a function that is used to configure an instance of Runner.
func Annoyances ¶
Annoyances is a RunnerOpt func that is used to specify which annoyances on Apollo to look out for.
func CookieFile ¶
CookieFile is a RunnerOpt func that specifies the path to a file containing login cookies for the provided Apollo accounts.
func CsvOutput ¶
func CsvOutput() RunnerOpt
CsvOutput is a RunnerOpt func that sets the desired output format to CSV.
func Dailyimit ¶
Dailyimit is a RunnerOpt func that configures the Runner's daily limit for saving leads on Apollo.
func Debug ¶
Debug is a RunnerOpt func that configures the Runner to print useful debugging information.
func FetchCredits ¶
FetchCredits is a RunnerOpt func that configures the Runner to fetch the credits for each models.Account before scraping.
func Headless ¶
Headless is a RunnerOpt func that configures whether or not the Runner launches the browser in headless mode.
func JsonOutput ¶
func JsonOutput() RunnerOpt
JsonOutput is a RunnerOpt func that sets the desired output format to CSV.
func OutputDir ¶
OutputDir is a RunnerOpt func that specifies the output directory for Runner's output files.
func SaveProgress ¶
SaveProgress is a RunnerOpt func that specifies whether or not the Runner saves the intermediary state for each of the [models.Account]s.
func Stealth ¶
Stealth is a RunnerOpt func that specifies whether or not the Runner launches the browser in stealth mode.
func Tab ¶
Tab is a RunnerOpt func that configures the Runner to scrape leads from the specified tab on Apollo.