Skip to content

Commit 5410c64

Browse files
author
Andrei
committed
Refactor. Update version
1 parent c726a26 commit 5410c64

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

python_cptchnet/ImageCaptcha.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ def __image_temp_saver(self, content: bytes):
108108
self.post_payload.update(
109109
{"body": base64.b64encode(content).decode("utf-8")}
110110
)
111-
captcha_id = self.session.post(
112-
url_request, data=self.post_payload
113-
).json()
111+
captcha_id = self.session.post(url_request, data=self.post_payload).json()
114112

115113
except Exception as error:
116114
self.result.update({"error": True, "errorBody": {"text": error, "id": -1}})

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
EMAIL = "drang.andray@gmail.com"
1313
AUTHOR = "AndreiDrang"
1414
REQUIRES_PYTHON = ">=3.6.0"
15-
VERSION = "0.1"
15+
VERSION = "0.2"
1616
REQUIRED = ["requests==2.21.0", "aiohttp==3.5.4"]
1717

1818
here = os.path.abspath(os.path.dirname(__file__))

0 commit comments

Comments
 (0)