Yanked
This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: moved to new python sdk "olostep"
Olostep SDK
A lightweight Python SDK for interacting with the Olostep scraping, crawling, and batching API.
🚀 Installation
Install from PyPI:
pip install olostep-sdk
🧰 Features
- Scrape single URLs with different parsers
- Batch process multiple items
- Crawl starting from a URL
- Retrieve and parse content in multiple formats (JSON, Markdown, etc.)
🔑 Getting Started
First, initialize the SDK with your API token:
from olostep_sdk import OlostepClient
from olostep_sdk.services.scrape import ScrapeService
from olostep_sdk.enums import OlostepParser, Format
client = OlostepClient(api_token="your-api-token")
scraper = ScrapeService(client)
🔍 Scrape a URL
result = scraper.scrape(
url="https://example.com",
parser=OlostepParser.GOOGLE_SEARCH
)
print(result)
📦 Start a Batch
from olostep_sdk.services.batch import BatchService
batch = BatchService(client)
batch_id = batch.start_batch([
{"url": "https://example1.com"},
{"url": "https://example2.com"}
])
batch.wait_until_complete(batch_id)
items = batch.get_items(batch_id)
🌐 Crawl a Website
from olostep_sdk.services.crawl import CrawlService
crawler = CrawlService(client)
crawl_id = crawler.start_crawl("https://example.com")
crawler.wait_until_complete(crawl_id)
results = crawler.get_items(crawl_id)
📄 Formats and Parsers
from olostep_sdk.enums import Format, OlostepParser
Format.MARKDOWN
Format.JSON
OlostepParser.GOOGLE_SEARCH
OlostepParser.BASIC
🧪 Running Tests
python -m unittest discover -s tests
📬 License
This project is licensed under the MIT License.
Metadata
Release files for olostep-sdk 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| olostep_sdk-0.1.2.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| olostep_sdk-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / olostep_sdk-0.1.2.tar.gz
| Download URL | olostep_sdk-0.1.2.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9007280bced8c792114609f072907f311f38afd4db7912cc049b8e5805472efe
|
|
BLAKE2b-256 checksum How to use checksums |
87a45d63051848baeb95bd3be0dc990325953da7617a7255c14b7c0d0aab7734
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|
Release files / olostep_sdk-0.1.2-py3-none-any.whl
| Download URL | olostep_sdk-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8ab6178a9babd071e0321a03492c05de1ca2627f3e0c71b03718ebfdfe7d1c8
|
|
BLAKE2b-256 checksum How to use checksums |
7d80e4d1349b7706554e293b107f6db0d1a07434973bdfff26b9dd93e2148724
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.4
|