From f954d2c750606eb41f43290ea7bf7ff831f4abd7 Mon Sep 17 00:00:00 2001 From: Cullen Watson Date: Sun, 29 Sep 2024 14:19:45 -0500 Subject: [PATCH] docs:readme --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bfeb416..36ed4e3 100644 --- a/README.md +++ b/README.md @@ -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( @@ -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 @@ -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) |