Skip to content

Commit

Permalink
docs:readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenwatson committed Sep 29, 2024
1 parent 3855c51 commit f954d2c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ _Python version >= [3.10](https://www.python.org/downloads/release/python-3100/)

```python
from pathlib import Path
from staffspy import LinkedInAccount, SolverType
from staffspy import LinkedInAccount, SolverType, DriverType, BrowserType

session_file = Path(__file__).resolve().parent / "session.pkl"
account = LinkedInAccount(
Expand All @@ -31,6 +31,12 @@ account = LinkedInAccount(
# password="mypassword",
# solver_api_key="your-api-key",
# solver_service=SolverType.TWO_CAPTCHA,

# if issues with webdriver, specify
# driver_type=DriverType(
# browser_type=BrowserType.CHROME,
# executable_path="/Users/pc/chromedriver-mac-arm64/chromedriver"
# ),

session_file=str(session_file), # save login cookies to only log in once (lasts a week or so)
log_level=1, # 0 for no logs
Expand Down Expand Up @@ -84,6 +90,9 @@ Optional
├── password (str):
| linkedin account password
|
├── driver_type (DriverType):
| signs in with the given BrowserType (Chrome, Firefox) and executable_path
|
├── solver_service (SolverType):
| solves the captcha using the desired service - either CapSolver, or 2Captcha (worse of the two)
|
Expand Down

0 comments on commit f954d2c

Please sign in to comment.