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.1.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.1-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: basedflare_session_niquests-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 56bb91c96a50c1d7e02e347546f4fe1fa52b7b0db174d7f0f49ebb2e12eb008c
MD5 4607628d919a7c0d606d0c7d102d27d3
BLAKE2b-256 b9b35a4e4dccf9c31a38baf7c3a14900316858efb732ac72c2223bad73263d7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: basedflare_session_niquests-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 340845d6a746d406b6ccc0b35a11acbd869846ab1d0edf7ef4cc007736a02f11
MD5 49a7fe5c8370d2b067b0cc2af7fe6b4a
BLAKE2b-256 8b4d9f55c68c18eecfef748249f5b839746f14f51cd08e64540f1ede895f26a6

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