check-rkn 1.1.0__py3-none-any.whl → 1.2.1__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 +4 -1
- {check_rkn-1.1.0.dist-info → check_rkn-1.2.1.dist-info}/METADATA +9 -15
- check_rkn-1.2.1.dist-info/RECORD +7 -0
- {check_rkn-1.1.0.dist-info → check_rkn-1.2.1.dist-info}/WHEEL +1 -1
- check_rkn-1.1.0.dist-info/RECORD +0 -7
- {check_rkn-1.1.0.dist-info → check_rkn-1.2.1.dist-info/licenses}/LICENSE +0 -0
- {check_rkn-1.1.0.dist-info → check_rkn-1.2.1.dist-info/licenses}/NOTICE +0 -0
check_rkn/check_rkn.py
CHANGED
@@ -14,6 +14,7 @@ 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
|
+
|
17
18
|
if captcha_text != 0:
|
18
19
|
return captcha_text
|
19
20
|
else:
|
@@ -29,7 +30,7 @@ def paste_solution(api_key: str, webdriver) -> None:
|
|
29
30
|
img.screenshot("captcha.png")
|
30
31
|
|
31
32
|
solution = solve_captcha(api_key, "captcha.png")
|
32
|
-
|
33
|
+
|
33
34
|
webdriver.find_element(By.XPATH, '//*[@id="captcha"]').send_keys(solution)
|
34
35
|
|
35
36
|
remove("captcha.png")
|
@@ -56,6 +57,8 @@ def check_website(url: str, api_key: str) -> bool:
|
|
56
57
|
|
57
58
|
click_button = browser.find_element(By.XPATH, '//*[@id="send_but2"]')
|
58
59
|
click_button.click()
|
60
|
+
|
61
|
+
print("\033c\033[3J", end="")
|
59
62
|
|
60
63
|
try:
|
61
64
|
browser.find_element(
|
@@ -1,20 +1,15 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: check-rkn
|
3
|
-
Version: 1.1
|
3
|
+
Version: 1.2.1
|
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=NZvAWQN2fIqr2VBnHPdt83o7jGNHwvwki-O6uJpa9eI,1936
|
3
|
+
check_rkn-1.2.1.dist-info/METADATA,sha256=WIomqT_EsdBm2APKBDxmy6PcFFIvcLLHv_CnKmppazQ,1301
|
4
|
+
check_rkn-1.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
5
|
+
check_rkn-1.2.1.dist-info/licenses/LICENSE,sha256=czn6QYya0-jhLnStD9JqnMS-hwP5wRByipkrGTvoXLI,11355
|
6
|
+
check_rkn-1.2.1.dist-info/licenses/NOTICE,sha256=GiIZ5ZATNgbheMoTjpfX8g5lE8hPsM09WnQR21FQWe4,559
|
7
|
+
check_rkn-1.2.1.dist-info/RECORD,,
|
check_rkn-1.1.0.dist-info/RECORD
DELETED
@@ -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,,
|
File without changes
|
File without changes
|