nstdata crawl SDK (Python)
Python SDK for nstdata crawl, an advanced web scraping and crawling service.
Installation
pip install nstdata-ai-crawl
Features
- Basic Scraping: Get HTML and Markdown synchronously.
- Screenshots & PDFs: Take full-page screenshots and export pages as PDFs.
- Browser Actions: Orchestrate browser actions like wait for elements, fill forms, click buttons, scroll, and execute JS.
- Custom Configuration: Bring your own cookies, headers, and simulate mobile devices.
- Content Filtering: Automatically extract high-quality main content, filter out ads and navigational elements.
- Proxy Location: Specify proxy exit country with
proxy.country. - Synchronous or Asynchronous Scraping: Use the same scrape API; asynchronous submission returns a task ID for polling.
- Batch Crawling: Traverse entire sites with depth and page limits.
Quick Start
See main.py for a complete list of usage examples.
import os
from nstdata_ai_crawl import NstDataClient, ScrapeRequestDto, Format
# Initialize the client with your API token
TOKEN = os.getenv("NSTDATA_API_TOKEN", "YOUR_API_TOKEN")
def main():
with NstDataClient(TOKEN) as client:
# Submit a basic scraping task
res = client.submit_scrape_task_sync(ScrapeRequestDto(
url="https://example.com/",
formats=[Format.MARKDOWN],
timeout=60000,
))
# Output the resulting markdown
print(res.data.get_markdown())
if __name__ == "__main__":
main()
Metadata
Release files for nstdata-ai-crawl 0.1.1
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 | |
|---|---|---|---|---|
| nstdata_ai_crawl-0.1.1.tar.gz | 9.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nstdata_ai_crawl-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / nstdata_ai_crawl-0.1.1.tar.gz
| Download URL | nstdata_ai_crawl-0.1.1.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb08cf2a990970d30740240744a793ddfe0a06ec9380b7b3898dcbadc1f8a77a
|
|
BLAKE2b-256 checksum How to use checksums |
eeb66c95ee747dabb3e36ee9715a8d92c707e79b7ca757dcf37fd229a6e6991f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / nstdata_ai_crawl-0.1.1-py3-none-any.whl
| Download URL | nstdata_ai_crawl-0.1.1-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
122b0a260149bd3fd80f304032a1ee97b4a19a28c1082c4147ce08518685c9af
|
|
BLAKE2b-256 checksum How to use checksums |
a7c01ff22ea1aa7c15af48697bfc75d4c76810cdcb23aef1ee0b3d4016550043
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for nstdata-ai-crawl 0.1.1
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.