The dendrite-python-sdk provides powerful tools for building web AI agents capable of authenticating, interacting with, and extracting data from any website. This SDK is ideal for developers looking to automate web tasks and enhance their AI applications.
claude install dendrite-systems/dendrite-python-sdkThe dendrite-python-sdk provides powerful tools for building web AI agents capable of authenticating, interacting with, and extracting data from any website. This SDK is ideal for developers looking to automate web tasks and enhance their AI applications.
[{"step":"Install and configure the dendrite-python-sdk","action":"Run `pip install dendrite-python-sdk` and set up your API credentials in the SDK configuration file. Ensure you have your developer access token from [ChatBot settings](https://app.chatbot.com/settings/developers).","tip":"Use environment variables for sensitive tokens: `export DENDRITE_ACCESS_TOKEN='your_token_here'`"},{"step":"Define the target website and authentication method","action":"Specify the target URL in your script and configure authentication. For example, use session cookies for logged-in pages or OAuth for API-based sites.","tip":"Test authentication separately first. Use browser dev tools to capture required headers or cookies."},{"step":"Design the data extraction workflow","action":"Use the SDK's `Agent` class to create a web agent. Define navigation steps (e.g., go to product page, scroll to load dynamic content) and specify data fields to extract using CSS selectors or XPath.","tip":"Start with a single product page to validate selectors before scaling to multiple pages."},{"step":"Handle edge cases and dynamic content","action":"Implement retry logic for failed requests, add delays for dynamic content loading, and use the SDK's built-in CAPTCHA solvers or proxy rotation if needed.","tip":"Log all errors and retries to debug issues. Use `logging` module to track agent behavior."},{"step":"Export and validate the extracted data","action":"Save the structured data to a JSON file or database. Validate the output against a sample of the website to ensure accuracy.","tip":"Compare extracted data with manual checks for critical fields like prices or availability."}]
Automating data collection from competitor websites
Building chatbots that interact with web services
Creating agents for market research by scraping data
Integrating web data into CRM systems
claude install dendrite-systems/dendrite-python-sdkgit clone https://github.com/dendrite-systems/dendrite-python-sdkCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use the dendrite-python-sdk to build a web AI agent that automates data extraction from [WEBSITE_URL]. The agent should authenticate using [AUTH_METHOD], navigate to [SPECIFIC_PAGE], and extract [DATA_FIELDS]. Handle dynamic content and potential CAPTCHAs. Return the structured data in JSON format.
```json
{
"extraction_timestamp": "2023-11-15T14:30:22Z",
"source_url": "https://example-ecommerce.com/products/category/electronics",
"data": [
{
"product_id": "ELEC-2023-001",
"name": "Wireless Noise-Cancelling Headphones",
"price": 299.99,
"availability": "In Stock",
"rating": 4.7,
"specs": {
"brand": "SoundMaster",
"color": "Black",
"battery_life": "30 hours",
"weight": "250g"
},
"metadata": {
"last_updated": "2023-11-10T08:15:00Z",
"extracted_by": "dendrite-python-sdk-v1.2.4"
}
},
{
"product_id": "ELEC-2023-002",
"name": "Smartphone with 5G",
"price": 899.00,
"availability": "Out of Stock",
"rating": 4.2,
"specs": {
"brand": "TechNova",
"storage": "256GB",
"screen_size": "6.5 inches",
"os": "Android 14"
},
"metadata": {
"last_updated": "2023-11-12T11:42:00Z",
"extracted_by": "dendrite-python-sdk-v1.2.4"
}
}
],
"summary": {
"total_products": 2,
"avg_rating": 4.45,
"price_range": {"min": 299.99, "max": 899.00},
"availability_breakdown": {"in_stock": 1, "out_of_stock": 1}
},
"warnings": [
"CAPTCHA encountered on page 2. Retried with delay.",
"Dynamic content load failed for product ELEC-2023-003. Skipped."
]
}
```Your one-stop shop for church and ministry supplies.
Automate your browser workflows effortlessly
Orchestrate workloads with multi-cloud support, job scheduling, and integrated service discovery features.
Design, document, and generate code for APIs with interactive tools for developers.
CI/CD automation with build configuration as code
Enhance performance monitoring and root cause analysis with real-time distributed tracing.
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan