Skip to main content

A FlareSolverr wrapper for Python.

Project description

FSPy

An easy to use FlareSolverr wrapper for Python.

Usage

from fspy import FlareSolverr

solver = FlareSolverr()

# With custom ip and port
solver = FlareSolverr(host="127.0.0.1", port="5050")

# With https
solver = FlareSolverr(http_schema="https")

# If you want some additional headers
headers = {
    "Connection": "keep-alive"
}
solver = FlareSolverr(additional_headers=headers)

# When (for whatever the reason) flaresolverr changes /v1 endpoint
solver = FlareSolverr(v="v2")

# List all session ids
sessions = solver.sessions

# List sessions response
sessions = solver._sessions_raw

# Create a session with a random UUID
new_session = solver.create_session()

# Create a session with a custom id and proxy
new_session = solver.create_session(session_id="thisismyid", proxy_url="http://thisismycustomproxyurl.uwu")

# Delete a session
response = solver.destroy_session("thisismyid")

# Get request
response = solver.request_get("https://google.com")
# All flaresolverr additional args are supported

# Post request
params = {
    "param1": "value1",
    "param2": 2,
    "param3": [3, 3, 3]
}
response = solver.request_post("https://google.com", params)

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

fspy-0.4.0.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

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

fspy-0.4.0-py2.py3-none-any.whl (29.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fspy-0.4.0.tar.gz.

File metadata

  • Download URL: fspy-0.4.0.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for fspy-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4b571d8566c3351af47a2de309f196961a28f147ee07024075a026fc472d1c6e
MD5 379e9f095f45620064242234e391e472
BLAKE2b-256 3c0df7de32f78186327e28fcf72e39db1832ae428a54d20e0ed9e2c33d9cf900

See more details on using hashes here.

Provenance

The following attestation bundles were made for fspy-0.4.0.tar.gz:

Publisher: python-publish.yml on NandeMD/FSPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fspy-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: fspy-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for fspy-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 035107f2bd927fd05e2d8a28a00fd3d6973fbcc63252cc9b7906f639d47a410d
MD5 35996c97d452082bff5b91f170035d2e
BLAKE2b-256 80db715d8e6b0a55a501393d13ef5f6e5bdd9253bd683f386f71955f9d550908

See more details on using hashes here.

Provenance

The following attestation bundles were made for fspy-0.4.0-py2.py3-none-any.whl:

Publisher: python-publish.yml on NandeMD/FSPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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