Skip to content

Commit

Permalink
enh: captcha solve
Browse files Browse the repository at this point in the history
  • Loading branch information
cullenwatson committed Jul 26, 2024
1 parent 7ffb374 commit 771472e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "staffspy"
version = "0.1.8"
version = "0.1.9"
description = "Staff scraper library for LinkedIn"
authors = ["Cullen Watson <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion staffspy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def solve_captcha(self, session,data,payload):

token = capsolver(extracted_code,self.capsolver_api_key)
if not token:
raise Exception('no token')
raise Exception('failed to solve captcha after 10 attempts')

captcha_site_key = soup.find('input', {'name': 'captchaSiteKey'})['value']
challenge_id = soup.find('input', {'name': 'challengeId'})['value']
Expand Down

0 comments on commit 771472e

Please sign in to comment.