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 😆
Metadata
Release files for geecracker 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geecracker-0.0.2.tar.gz | 6.6 kB | Without provenance | Details for geecracker-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geecracker-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for geecracker-0.0.2-py3-none-any.whl |
Total release size: 14.3 kB
Release files / geecracker-0.0.2.tar.gz
| Download URL | geecracker-0.0.2.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3bc8d2b9749cefb85c0270460b3c95df2600e8798c6aba5a23a4cdcf3f78f87b
|
|
BLAKE2b-256 checksum How to use checksums |
1635d721defb36fe7001acd792889c37116cd65e39332d2307046de50c2d32a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / geecracker-0.0.2-py3-none-any.whl
| Download URL | geecracker-0.0.2-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9b90cb135ce314a2793446456c62b52f6a90542d8e8b1525248e81649c4a85d0
|
|
BLAKE2b-256 checksum How to use checksums |
29cc7f5414d23c4affa6f8248ab688261531ba4b861a93b54c9a81432ab9aeff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for geecracker 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.