A tool for browsing tasks on e-h/exh-websites.
Project description
HBrowser (hbrowser)
Setup
Tor Proxy (Optional)
HBrowser can route all traffic through the Tor network for IP privacy. If Tor Browser is installed, HBrowser will automatically detect and use it. To install:
- Download and install from https://www.torproject.org/download/
- HBrowser will automatically locate the
torbinary from the default installation path:- macOS:
/Applications/Tor Browser.app/Contents/MacOS/Tor/tor - Linux:
/usr/bin/tor - Windows: Searches common installation paths (
Desktop,AppData,Program Files)
- macOS:
- If Tor Browser is not installed, HBrowser will use a direct connection instead.
- To force disable Tor even when installed, set
USE_TOR=0. - If your Tor Browser is installed in a non-standard location, set the
TOR_BINARY_PATHenvironment variable.
Environment Variables
HBrowser requires the following environment variables:
EH_USERNAME: Your E-Hentai account usernameEH_PASSWORD: Your E-Hentai account passwordAPIKEY_2CAPTCHA: Your 2Captcha API key for solving CAPTCHA challengesHBROWSER_LOG_LEVEL(optional): Control logging verbosity (DEBUG, INFO, WARNING, ERROR). Default: INFOUSE_TOR(optional): Set to0to disable Tor proxy even when Tor Browser is installed. Default: auto-detectTOR_BINARY_PATH(optional): Custom path to thetorbinary if not installed in the default location
Set the environment variables before running the script:
Bash/Zsh:
export EH_USERNAME=your_username
export EH_PASSWORD=your_password
export APIKEY_2CAPTCHA=your_api_key_here
export HBROWSER_LOG_LEVEL=INFO # Optional
export USE_TOR=0 # Optional: disable Tor proxy
export TOR_BINARY_PATH=/path/to/tor # Optional: custom tor path
Fish:
set -x EH_USERNAME your_username
set -x EH_PASSWORD your_password
set -x APIKEY_2CAPTCHA your_api_key_here
set -x HBROWSER_LOG_LEVEL INFO # Optional
set -x USE_TOR 0 # Optional: disable Tor proxy
set -x TOR_BINARY_PATH /path/to/tor # Optional: custom tor path
Windows Command Prompt:
set EH_USERNAME=your_username
set EH_PASSWORD=your_password
set APIKEY_2CAPTCHA=your_api_key_here
set HBROWSER_LOG_LEVEL=INFO
set USE_TOR=0
set TOR_BINARY_PATH=C:\path\to\tor.exe
Windows PowerShell:
$env:EH_USERNAME="your_username"
$env:EH_PASSWORD="your_password"
$env:APIKEY_2CAPTCHA="your_api_key_here"
$env:HBROWSER_LOG_LEVEL="INFO"
$env:USE_TOR="0"
$env:TOR_BINARY_PATH="C:\path\to\tor.exe"
HBrowser uses 2Captcha service to automatically solve Cloudflare Turnstile and managed challenges that may appear during login. You need to register for a 2Captcha account and obtain an API key.
Logging
HBrowser uses Python's built-in logging module. You can control the log level using the HBROWSER_LOG_LEVEL environment variable:
- DEBUG: Detailed information for diagnosing problems (most verbose)
- INFO: Confirmation that things are working as expected (default)
- WARNING: Something unexpected happened, but the software is still working
- ERROR: A serious problem that prevented a function from executing
Example:
# Set log level to DEBUG for detailed output
export HBROWSER_LOG_LEVEL=DEBUG
python your_script.py
# Set log level to WARNING to see only warnings and errors
export HBROWSER_LOG_LEVEL=WARNING
python your_script.py
Usage
Here's a quick example of how to use HBrowser:
from hbrowser import EHDriver
if __name__ == "__main__":
with EHDriver() as driver:
driver.punchin()
Here's a quick example of how to use HVBrowser:
from hvbrowser import HVDriver
if __name__ == "__main__":
with HVDriver() as driver:
driver.monstercheck()
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
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 hbrowser-0.25.11.tar.gz.
File metadata
- Download URL: hbrowser-0.25.11.tar.gz
- Upload date:
- Size: 66.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa1ad041d0ebb121583a644a6614a640d3b78c38dc8cff4aa0fe2cc3d2720519
|
|
| MD5 |
c1ad46e65dbc6198fca2d229683c3bbf
|
|
| BLAKE2b-256 |
79c60cfee8533f28c4ce61276194d83f03eba5665157ff94b8cd935a17346d27
|
Provenance
The following attestation bundles were made for hbrowser-0.25.11.tar.gz:
Publisher:
publish.yml on Kuan-Lun/hbrowser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hbrowser-0.25.11.tar.gz -
Subject digest:
aa1ad041d0ebb121583a644a6614a640d3b78c38dc8cff4aa0fe2cc3d2720519 - Sigstore transparency entry: 1205423170
- Sigstore integration time:
-
Permalink:
Kuan-Lun/hbrowser@ee5704aadce35bc33de7d2191588d189121b5479 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Kuan-Lun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ee5704aadce35bc33de7d2191588d189121b5479 -
Trigger Event:
push
-
Statement type:
File details
Details for the file hbrowser-0.25.11-py3-none-any.whl.
File metadata
- Download URL: hbrowser-0.25.11-py3-none-any.whl
- Upload date:
- Size: 74.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
689c1f0d235b993d787ce45daee39fa07dba3f23474dc00fc2f1afc2f3eeafae
|
|
| MD5 |
866136334608531fc586e4b7198e5d06
|
|
| BLAKE2b-256 |
c831829dfacc1951a0b55581e3078a58299db40a6ae8d63d974d48e6c1652cb0
|
Provenance
The following attestation bundles were made for hbrowser-0.25.11-py3-none-any.whl:
Publisher:
publish.yml on Kuan-Lun/hbrowser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hbrowser-0.25.11-py3-none-any.whl -
Subject digest:
689c1f0d235b993d787ce45daee39fa07dba3f23474dc00fc2f1afc2f3eeafae - Sigstore transparency entry: 1205423181
- Sigstore integration time:
-
Permalink:
Kuan-Lun/hbrowser@ee5704aadce35bc33de7d2191588d189121b5479 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Kuan-Lun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ee5704aadce35bc33de7d2191588d189121b5479 -
Trigger Event:
push
-
Statement type: