A client library for the Saldor API.
Project description
Saldor
Saldor is a Python client library for interacting with the Saldor.com API. It allows developers to easily integrate Saldor's services into their Python applications.
Examples
Using the python library
pip install saldor
Writing a basic app that uses the client:
import os
import saldor
client = saldor.SaldorClient(api_key=os.getenv("SALDOR_API_KEY"))
documents = client.scrape_url(
url="URL",
params={},
)
# Create a directory called 'results' if it doesn't exist
os.makedirs("results", exist_ok=True)
# Iterate through the documents and save each as a markdown file
for i, document in enumerate(documents["data"]):
file_path = os.path.join("results", f"{i}.md")
with open(file_path, "w", encoding="utf-8") as file:
file.write(document)
Using curl
curl -X POST "https://api.saldor.com/scrape" \
-H "x-api-key: API-KEY" \
-H "Content-Type: application/json" \
-d '{"url": "URL", "params": {}}'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
saldor-0.0.6.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file saldor-0.0.6.tar.gz.
File metadata
- Download URL: saldor-0.0.6.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44af2608956a24cde66afd43ea49f58912d2a870c70b0a880bcf0f18919cb64e
|
|
| MD5 |
5b5fbfb1ca1c3a4507cca611f33a41f3
|
|
| BLAKE2b-256 |
2c3a227d52324550e448940fce7e05192beaaf631a64e53089138ced6052f8d9
|
File details
Details for the file saldor-0.0.6-py3-none-any.whl.
File metadata
- Download URL: saldor-0.0.6-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec554311b7209645b75febce8353306b3eb680d51c53941b4e2384c89f7d5018
|
|
| MD5 |
c141af24f4d160c5ecf9f8a0d15dca25
|
|
| BLAKE2b-256 |
584b8ecac151e2085cdcb2676c97939ad4923582c46f1ebe3ca72b1639d30994
|