Skip to main content

Provides a niquests-flavored session to solve BasedFlare challenges automatically. It also includes utility functions to solve the challenges manually.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

basedflare-session-niquests

PyPI version Python versions License

A package that extends Python's niquests 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 niquests. 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 improvements where applicable.

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_niquests 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_niquests-0.2.0.tar.gz (16.0 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_niquests-0.2.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file basedflare_session_niquests-0.2.0.tar.gz.

File metadata

  • Download URL: basedflare_session_niquests-0.2.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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_niquests-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a1a8b87a24c3e4433474caa4c639e868ebf029de774752062a014f284bc16b1b
MD5 42e08dba9357c13984a3c2534219743d
BLAKE2b-256 885352997a8c11d944a54c4faa58086561cee39b8342639fa8009e556f6a51f4

See more details on using hashes here.

File details

Details for the file basedflare_session_niquests-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: basedflare_session_niquests-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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_niquests-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1344b5fbb12cbc364ab08cf5850a2460963a054df9c9b2c0a4b5c1c2f9e34a35
MD5 afd1fc11a977e40da64a74093e839e6e
BLAKE2b-256 b282ee52311414e8fd869ee9e53805c8e4e3b90b62e606aa321c546987dddf93

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