crawlora-sofascore
Python client for Crawlora's hosted SofaScore API. It calls Crawlora's
service; it does not run a browser or scrape SofaScore locally. A Crawlora
account and CRAWLORA_API_KEY are required, and API use is billed under your
Crawlora account. Crawlora is independent from and not endorsed by
SofaScore or its owners.
Install
python -m pip install crawlora-sofascore
Use
import os
from crawlora_sofascore import SofascoreClient
with SofascoreClient(api_key=os.environ["CRAWLORA_API_KEY"]) as client:
result = client.search(q='Liverpool')
print(result)
The package also exports Client as an alias for SofascoreClient. Operation
methods are available directly in snake_case and through the sofascore
group. The async package client is AsyncSofascoreClient; see the online
endpoint and parameter reference and runnable example.
The import snippet above is for a project where this PyPI package is installed. To run the checked-in example from a source checkout, install ./python from the repository root and run python examples/python.py; see the source-checkout instructions.
Configuration
Pass your key through api_key or read CRAWLORA_API_KEY from the environment.
Keep credentials out of source control and logs. Requests go to Crawlora's
hosted API, and response data and availability follow its current contract.
Metadata
Release files for crawlora-sofascore 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| crawlora_sofascore-0.1.0.tar.gz | 24.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crawlora_sofascore-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.5 kB
Release files / crawlora_sofascore-0.1.0.tar.gz
| Download URL | crawlora_sofascore-0.1.0.tar.gz |
|---|---|
| Size | 24.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0e5b91d7b563e7873d9f81087159bfb180bd853a46ff7ac97bb24e67388f0e0
|
|
BLAKE2b-256 checksum How to use checksums |
8151a24a17b02643e45745de4f1af6f7f5249d64b1d67b87fed4b3a1fd4b0598
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Release files / crawlora_sofascore-0.1.0-py3-none-any.whl
| Download URL | crawlora_sofascore-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25192fee0b6e39722ef210448bea5911efa05bd1b46b6b8eb9b3a2aee64d8dc2
|
|
BLAKE2b-256 checksum How to use checksums |
0c14721ce5b798054043e486bcf43798260c2771c850d1b07fc29fd0eee161f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|