Skip to main content

gcrawl-sdk

Official Python SDK for GCrawl — Scrape, batch scrape, crawl, screenshot, fetch links, and search web pages with ease.

Installation

pip install gcrawl-sdk

Quick Start

from gcrawl_sdk import GcrawlClient, ScrapeOptions

client = GcrawlClient(api_key="your-api-key")

# Scrape a website (synchronous polling)
result = client.scrape(
    url="https://gramosoft.tech",
    options=ScrapeOptions(markdown_enabled=True, html_enabled=True),
    wait=True
)
print("Scraped Markdown:", result.markdown)
print("Scraped HTML:", result.html)

# Batch scrape multiple websites
batch_res = client.batch(
    urls=["https://gramosoft.tech", "https://gdoczai.com"],
    wait=True
)
for page in batch_res.pages:
    print(page.url, page.markdown[:50])

# Search web synchronously
search_res = client.search("gramosoft", pagination=5, geo="IN")
for res in search_res.results:
    print(res.position, res.title, res.url)

API Key

Set your API key as an environment variable:

export GCRAWL_API_KEY="your-api-key"

Or pass it directly to the client:

client = GcrawlClient(api_key="your-api-key")

Documentation

For detailed endpoint guides, options, and response references, see the documentation guides below:

Endpoint Description Documentation Guide
Scrape Scrape single webpage to Markdown, HTML, SEO, Images scrape_documentation.md
Batch Scrape multiple URLs concurrently in a single request batch_documentation.md
Crawl Recursively crawl websites up to specified page limits crawl_documentation.md
Search Synchronous web search engine listings retrieval search_documentation.md
Screenshot Full page or viewport screenshot capture with JS rendering screenshot_documentation.md
Links Extract all internal/external anchor links from a page links_documentation.md
Offline-Bundle Package complete web pages with assets into downloadable ZIP offline_bundle_documentation.md

Release files for gcrawl-sdk 0.5.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gcrawl-sdk 0.5.5
File Size Uploaded
gcrawl_sdk-0.5.5.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gcrawl-sdk 0.5.5
File Interpreter ABI Platform
gcrawl_sdk-0.5.5-py3-none-any.whl Python 3 none any Details

Total release size: 22.6 kB

Release files / gcrawl_sdk-0.5.5.tar.gz

Download URL gcrawl_sdk-0.5.5.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
41b137b9d54632c9feb580ad3dd68bb1004942fe05602a7c20e0b0a3d42affc2
BLAKE2b-256 checksum
How to use checksums
1d87f091778368f8ea911a3c0d98ef2eabf69647dec3a8044f846bc605c5edec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / gcrawl_sdk-0.5.5-py3-none-any.whl

Download URL gcrawl_sdk-0.5.5-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51d3764c89ec58e4cfeae84647e63362d16c9206a9d4f9b0265ecedb19d2e51f
BLAKE2b-256 checksum
How to use checksums
7f541d723ff16127c657e2219672a08f21159faf1c6da328ce4699d5935910c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.5.5 This release

2 release files

0.5.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page