Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add captcha.guru service #8

Merged
merged 5 commits into from
Oct 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
2captcha: the price value is optional now in the solution response
  • Loading branch information
sergey-scat committed Oct 7, 2022
commit 5d852ec3174256d3dfd249ccc5512683130baa99
6 changes: 5 additions & 1 deletion unicaps/_service/twocaptcha.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,13 @@ def parse_response(self, response) -> dict:
else:
solution = solution_class(solution_data)

price = None
if 'price' in response_data:
price = response_data.pop("price")

return dict(
solution=solution,
cost=response_data.pop("price"),
cost=price,
extra=response_data
)

Expand Down