basedflare-session-redux
A package that extends Python's niquests or requests session to solve some BasedFlare Proof of Work (PoW) challenges automatically. It also includes utility functions to solve the challenges manually.
Please note that this package is a work in progress and may not function in all cases.
Currently, it supports the argon2 and sha256 PoW challenges.
Any other challenge, such as a CAPTCHA, will raise an exception.
Fork notice: This is a port of basedflare-session to support bothniquests and requests. It uses my anyquests package for that. It also introduces some improvements, such as correctly handling sites that do not use BasedFlare. Big thanks to @loynet and @jawah for their work! I intend to maintain this fork up to date with the original package, as well as introduce further improvements where applicable.
Rename notice: This project was briefly knows as basedflare-session-niquests. Since release 0.3.0 it is fully renamed to basedflare-session-redux. The project under the previous name is now archived on PyPI and will not be updated.
Usage
Suppose example.com is a website that requires you to solve a challenge before you can access it. Below is a simple
example of how to use the package:
from basedflare_session_redux import BasedSession
# Create a new session
session = BasedSession()
# Use the session to send a GET request
response = session.get('https://example.com')
# Print the response
print(response.text)
Metadata
Release files for basedflare-session-redux 0.3.0
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 |
|---|---|---|---|---|
| basedflare_session_redux-0.3.0.tar.gz | 16.4 kB | Without provenance | Details for basedflare_session_redux-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| basedflare_session_redux-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for basedflare_session_redux-0.3.0-py3-none-any.whl |
Total release size: 33.9 kB
Release files / basedflare_session_redux-0.3.0.tar.gz
| Download URL | basedflare_session_redux-0.3.0.tar.gz |
|---|---|
| Size | 16.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7cb3bc75632e47c9bbbc53ba85ab03ca4a6e1a1326d68f3805c7337d0a73ae2a
|
|
BLAKE2b-256 checksum How to use checksums |
1cf640a4b6bf6a0f3305f2217f8dc7e6ed5df9d893ee6d01eadbf39c00b17140
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / basedflare_session_redux-0.3.0-py3-none-any.whl
| Download URL | basedflare_session_redux-0.3.0-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b8c4a22c4cf011921c01d2812d9c6ca898271970f1b3bcd5ff106a297630a54
|
|
BLAKE2b-256 checksum How to use checksums |
ec05cfffc6a4366167865c7fe05bde8eacd740d9d970e737c5fdf6157e521406
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for basedflare-session-redux 0.3.0
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.