utils
File: utils.py.
Description
These functions are not specific to any particular part of the codebase, and are used in multiple places throughout the project.
get_driver(headless=False, proxy_protocol=None, proxy_address=None)
¶
Return a Selenium Chrome WebDriver object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
headless
|
bool
|
Whether to run the browser in headless mode. |
False
|
proxy_protocol
|
str
|
The protocol of the proxy to use. |
None
|
proxy_address
|
str
|
The address of the proxy to use. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
WebDriver |
Firefox
|
A Selenium WebDriver object. |