Skip to main content

Provides a requests- or niquests-flavored session to solve BasedFlare challenges automatically. Also includes utility functions to solve the challenges manually.

Project description

basedflare-session-redux

PyPI version Python versions License

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

basedflare_session_redux-0.3.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

basedflare_session_redux-0.3.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file basedflare_session_redux-0.3.0.tar.gz.

File metadata

  • Download URL: basedflare_session_redux-0.3.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for basedflare_session_redux-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7cb3bc75632e47c9bbbc53ba85ab03ca4a6e1a1326d68f3805c7337d0a73ae2a
MD5 3311899096380aa64ac88b0abf005873
BLAKE2b-256 1cf640a4b6bf6a0f3305f2217f8dc7e6ed5df9d893ee6d01eadbf39c00b17140

See more details on using hashes here.

File details

Details for the file basedflare_session_redux-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: basedflare_session_redux-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for basedflare_session_redux-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b8c4a22c4cf011921c01d2812d9c6ca898271970f1b3bcd5ff106a297630a54
MD5 d7ccbfbc8b97a1cbf81262e39232cd99
BLAKE2b-256 ec05cfffc6a4366167865c7fe05bde8eacd740d9d970e737c5fdf6157e521406

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page