A cracker of geetest depends on selenium
Project description
geecracker
极验验证 (geetest) Selenium 破解方式,参考了以下几篇文章:
Install
pip install geecracker
Usage
from geecracker import validate, panel_visible, GeeConfig
# 省略 selenium 登录到面板出现的代码,具体流程可以参考 tests/main.py
# GeeConfig 可以使用默认参数,如果需要修改配置以使更适合自己的项目的话,再考虑进行修改
gee_config = GeeConfig()
# 判断极验验证面板是否可见
if panel_visible(driver):
# 开始验证
validate(driver, gee_config)
Advanced
from geecracker import GeeCracker, panel_visible, GeeConfig
class CustomGeeCracker(GeeCracker):
def __init__(self, *args, **kwargs):
super(CustomGeeCracker, self).__init__(*args, **kwargs)
def _validate(self) -> bool:
# rewrite validation process
return super(CustomGeeCracker, self)._validate()
def custom_validation(self) -> bool:
# this will be automatically added to _validation_passed
# it's not recommended to modify _validation_passed to ensure GeeCracker works correctly
return True
... # other methods could be rewrite too
... # your codes
CustomGeeCracker(self.driver, self.gee_config).validate()
Contribute
if you want to contribute to this project, follow the steps below
# in you virtual env, run
pip install -r requirements.txt
# test your code
# currently I don't have enought time to add another test case,
# if you're intereseted in this project, it'll be grateful that you create your own test case with enthusiasm
# use your own ehire account, modify tests/data/account.test.json and tests/data/search_data.test.json
python -m tests.ehire.main
feel free to submit a pull request 😆
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
geecracker-0.0.2.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geecracker-0.0.2.tar.gz.
File metadata
- Download URL: geecracker-0.0.2.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bc8d2b9749cefb85c0270460b3c95df2600e8798c6aba5a23a4cdcf3f78f87b
|
|
| MD5 |
3fde4d58df39d7dab1ca9d3091f820e4
|
|
| BLAKE2b-256 |
1635d721defb36fe7001acd792889c37116cd65e39332d2307046de50c2d32a3
|
File details
Details for the file geecracker-0.0.2-py3-none-any.whl.
File metadata
- Download URL: geecracker-0.0.2-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b90cb135ce314a2793446456c62b52f6a90542d8e8b1525248e81649c4a85d0
|
|
| MD5 |
104b54963d41fca9384b2dac4a5c8d6e
|
|
| BLAKE2b-256 |
29cc7f5414d23c4affa6f8248ab688261531ba4b861a93b54c9a81432ab9aeff
|