check-rkn 1.1.0__py3-none-any.whl → 1.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
check_rkn/check_rkn.py CHANGED
@@ -14,6 +14,8 @@ def solve_captcha(api_key: str, image_captcha: str) -> str:
14
14
  solver.set_soft_id(0)
15
15
 
16
16
  captcha_text = solver.solve_and_return_solution(image_captcha)
17
+ print("\033[H\033[J", end="")
18
+
17
19
  if captcha_text != 0:
18
20
  return captcha_text
19
21
  else:
@@ -29,7 +31,7 @@ def paste_solution(api_key: str, webdriver) -> None:
29
31
  img.screenshot("captcha.png")
30
32
 
31
33
  solution = solve_captcha(api_key, "captcha.png")
32
-
34
+
33
35
  webdriver.find_element(By.XPATH, '//*[@id="captcha"]').send_keys(solution)
34
36
 
35
37
  remove("captcha.png")
@@ -1,20 +1,15 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: check-rkn
3
- Version: 1.1.0
3
+ Version: 1.2.0
4
4
  Summary: Library that check blocked website on blocklist.rkn.gov.ru
5
- License: Apache-2.0
6
- Author: IvanyaK
7
- Author-email: ivanrus200519@gmail.com
8
- Requires-Python: >=3.10,<4.0
9
- Classifier: License :: OSI Approved :: Apache Software License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.10
12
- Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Classifier: Programming Language :: Python :: 3.13
15
- Requires-Dist: anticaptchaofficial (>=1.0.53,<2.0.0)
16
- Requires-Dist: selenium (>=4.10.0,<5.0.0)
17
5
  Project-URL: Repository, https://codeberg.org/IvanyaK/check-rkn
6
+ Author-email: IvanyaK <ivanrus200519@gmail.com>
7
+ License-Expression: Apache-2.0
8
+ License-File: LICENSE
9
+ License-File: NOTICE
10
+ Requires-Python: ~=3.10
11
+ Requires-Dist: anticaptchaofficial<2,>=1.0.53
12
+ Requires-Dist: selenium<5,>=4.10.0
18
13
  Description-Content-Type: text/markdown
19
14
 
20
15
  # Check_rkn
@@ -41,4 +36,3 @@ print(result) # True if website is blocked or False if no
41
36
  ```
42
37
 
43
38
  ## License - [Apache 2.0](NOTICE)
44
-
@@ -0,0 +1,7 @@
1
+ check_rkn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ check_rkn/check_rkn.py,sha256=pg-pTmIthf9sfoRh-HQba8kQmT6lSfQF3pPdmUnVrR4,1931
3
+ check_rkn-1.2.0.dist-info/METADATA,sha256=jW47AKdyPZjeHW_3kU4agQvsxuJnqlxJZhYKQBOF9xk,1301
4
+ check_rkn-1.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ check_rkn-1.2.0.dist-info/licenses/LICENSE,sha256=czn6QYya0-jhLnStD9JqnMS-hwP5wRByipkrGTvoXLI,11355
6
+ check_rkn-1.2.0.dist-info/licenses/NOTICE,sha256=GiIZ5ZATNgbheMoTjpfX8g5lE8hPsM09WnQR21FQWe4,559
7
+ check_rkn-1.2.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.2
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,7 +0,0 @@
1
- check_rkn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- check_rkn/check_rkn.py,sha256=-9pu3NoHEUh6FKli7_yfi_LJXVVjNI_CCKoI12R91_M,1888
3
- check_rkn-1.1.0.dist-info/LICENSE,sha256=czn6QYya0-jhLnStD9JqnMS-hwP5wRByipkrGTvoXLI,11355
4
- check_rkn-1.1.0.dist-info/METADATA,sha256=nNi5HqpMIext6Qvo_tC6zU-GMAud2MLuKcwUOZbR5Yc,1588
5
- check_rkn-1.1.0.dist-info/NOTICE,sha256=GiIZ5ZATNgbheMoTjpfX8g5lE8hPsM09WnQR21FQWe4,559
6
- check_rkn-1.1.0.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
7
- check_rkn-1.1.0.dist-info/RECORD,,