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.4.tar.gz
(2.0 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.4.tar.gz.
File metadata
- Download URL: saldor-0.0.4.tar.gz
- Upload date:
- Size: 2.0 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 |
c1924d21660f33ee1e61eac9c109eab58583d48d97b0b43f13477234e6d4160a
|
|
| MD5 |
c8c6caac8a8195f7b13adf2df66f07bd
|
|
| BLAKE2b-256 |
80939fbc871de69f475485ea16713f91dd3e75236791df96d95542394aa44b69
|
File details
Details for the file saldor-0.0.4-py3-none-any.whl.
File metadata
- Download URL: saldor-0.0.4-py3-none-any.whl
- Upload date:
- Size: 2.4 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 |
091c43247127d4ec3b120b9ea2bd2ad9c8335a878acd804dbb5e90b0c1bd8175
|
|
| MD5 |
d563ae299710ae7a81a62bf4a7881c89
|
|
| BLAKE2b-256 |
abbfe3cf1a70d3540958f9d44ab469224e5b5e7c289601f45feec367712fc000
|