website_crawler_sdk
A Python SDK for interacting with WebsiteCrawler.org, designed to simplify crawling tasks via API. Submit URLs, monitor crawling status, and retrieve structured data in JSON format for ingesting in LLMs with ease.
To use the API, get your free API key from WebsiteCrawler.org settings page (login > visit settings page).
Features
- Trigger crawl jobs remotely
- Monitor crawling status in real time
- Access current URLs being crawled
- Fetch crawl output as raw JSON
- Respect API wait times dynamically
Installation
You can install it locally for development:
pip install website_crawler_sdk
Demo script
The objective of the following script is to submit a URL to webistecrawler via its API, get URLs being processed by the crawler in realtime and retrieve the JSON data of the crawled website via the API
import time
from website_crawler_sdk import WebsiteCrawlerConfig, WebsiteCrawlerClient
"""
Author: Pramod Choudhary (websitecrawler.org)
Version: 1.1
Date: July 10, 2025
"""
# Replace with your actual API key, target URL, and limit
YOUR_API_KEY = "YOUR_API_KEY" #Your API key goes here
URL = "YOUR_URL" #Enter a non redirecting URL/domain with https or http
LIMIT = YOUR_LIMIT #Change YOUR_LIMIT
def main():
cfg = WebsiteCrawlerConfig(YOUR_API_KEY)
client = WebsiteCrawlerClient(cfg)
# Submit URL to WebsiteCrawler.org for crawling
client.submit_url_to_website_crawler(URL, LIMIT) #Submit the URL and Limit to websitecrawler via API
while True:
task_status = client.get_task_status() #Start retrieving data if the task_status is true
print(f"{task_status} << task status")
time.sleep(2) #Wait for 2 seconds
if not task_status:
break
if task_status:
status = client.get_crawl_status() #get_crawl_status() method gets the crawl status
currenturl = client.get_current_url() #get_current_url() method gets the current URL
data = client.get_crawl_data() # get_crawl_data() method gets the structured data once crawling has completed
if status:
print(f"Current URL:: {status}")
if status == "Crawling": #Crawling is one of the status
print(f"Current URL:: {currenturl}")
if status == "Completed!": #Completed! (with exclamation) is one of the status
print("Task has been completed... closing the loop and gettint the data...")
if data:
print(f"JSON Data:: {data}")
time.sleep(20) # Give extra time for large JSON response
break
print("Job over")
if __name__ == "__main__":
main()
Metadata
Release files for website-crawler-sdk 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| website_crawler_sdk-0.1.5.tar.gz | 4.6 kB | Without provenance | Details for website_crawler_sdk-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| website_crawler_sdk-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for website_crawler_sdk-0.1.5-py3-none-any.whl |
Total release size: 10.1 kB
Release files / website_crawler_sdk-0.1.5.tar.gz
| Download URL | website_crawler_sdk-0.1.5.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec9c97ccb3007dc8402b9ad9eaf232ed77e8fa0600edfe3bbd7ea89385781b64
|
|
BLAKE2b-256 checksum How to use checksums |
1255abcc698d5a581b464168bf4853f96eede0c16d1f7bdea7e5b7d8db8a54e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / website_crawler_sdk-0.1.5-py3-none-any.whl
| Download URL | website_crawler_sdk-0.1.5-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c97f765d35662db08f3bafcd09cc838bb2a639c1e2682e5f78d0da5ac64b1c6
|
|
BLAKE2b-256 checksum How to use checksums |
834040fa2d3c30ac54784c12d65d99222c3c2a8175995f600f58e354846041ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for website-crawler-sdk 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.