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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gcrawl_sdk-0.5.4.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gcrawl_sdk-0.5.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / gcrawl_sdk-0.5.4.tar.gz
| Download URL | gcrawl_sdk-0.5.4.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e524ecf1925f1b0c48ccac5a0092875a925c72117b2119b2c91dd8995305f494
|
|
BLAKE2b-256 checksum How to use checksums |
a387e24c5a90585dbfdf494fb0cd4febc22998badb0e38afe71483eecdb13c8f
|
| 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.4-py3-none-any.whl
| Download URL | gcrawl_sdk-0.5.4-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16b8bf5125888f8ccd2fced166bff325a06ece2bb3c79a890109dac23a6bb6a9
|
|
BLAKE2b-256 checksum How to use checksums |
ddfb978ac3fd7b4fe6c917ffb77ac108ca441e0bab7027da2399acfbc1358bb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|