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

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.

Original description

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.

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 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.1.1.tar.gz (40.1 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.1.1-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: basedflare_session_niquests-0.1.1.tar.gz
  • Upload date:
  • Size: 40.1 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.1.1.tar.gz
Algorithm Hash digest
SHA256 0efaa830a8b069f0cfd2a0d8a034dda1ed1ec55bd94b3d2e007622ac6b69fc4c
MD5 1f1687d98fb0d9a3b964ef5d1bebc168
BLAKE2b-256 269f5eb96be365c92b4bade25dd4084e5d7b25ee9c6d0360a85fadfd467f9cb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: basedflare_session_niquests-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.8 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f99bab606304801096297b2f8f8b0d8fcd8f3f800975915cb4890f1714614811
MD5 840bc8341526ea74b6ee1fa7a87afcec
BLAKE2b-256 4b9445f706cb896ff083b600f1f357e01d0f4943cc7c6ad936f9d93acb4ff005

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