Skip to main content

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

Project description

basedflare-session

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

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-0.1.1.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

basedflare_session-0.1.1-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: basedflare_session-0.1.1.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for basedflare_session-0.1.1.tar.gz
Algorithm Hash digest
SHA256 80dd1b77f87a28cc510881ad198245182cfbd7819a33c82919f00fdd9aefab5b
MD5 8fd9794bf7b26f36786df6c555a3b532
BLAKE2b-256 0dd591ef30ee94933c245ae301fdec8525cf827a9c3a20ffcf31f1406ebdfed0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for basedflare_session-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd3a6bbb721b0a4e6d944506b6cb3f927fd6dae3f939aeb771951defb589a51b
MD5 4f26542b9cd6b0be4a1a91d6d2bec16b
BLAKE2b-256 236238153fc50c1354d1f9356b36a533e807ec72a46153fe40c7ddcbbc626cd2

See more details on using hashes here.

Supported by

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