Skip to content

Commit 7c76b36

Browse files
committed
feat: added banners and homes example
1 parent c8339ca commit 7c76b36

File tree

11 files changed

+27
-15
lines changed

11 files changed

+27
-15
lines changed

cookbook/examples/zillow.mdx renamed to cookbook/examples/homes.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
2-
title: '🏠 Zillow Listings'
3-
description: 'How to extract real estate data from Zillow'
2+
title: '🏠 Homes Listings'
3+
description: 'How to extract real estate data from Homes.com'
44
---
55

66
<img
77
style={{ borderRadius: '0.5rem' }}
8-
src="/cookbook/images/zillow-banner.png"
8+
src="/cookbook/images/homes-banner.png"
99
/>
1010

11-
Learn how to extract property listings from Zillow.com using ScrapeGraphAI's SmartScraper. This example demonstrates how to gather detailed property information, pricing, and agent details.
11+
Learn how to extract property listings from Homes.com using ScrapeGraphAI's SmartScraper. This example demonstrates how to gather detailed property information, pricing, and agent details.
1212

1313
<Note>
1414
Try it yourself in our interactive notebooks:
15-
- [SDK Implementation](https://github.com/ScrapeGraphAI/scrapegraph-sdk/blob/main/cookbook/zillow-forsale/scrapegraph_sdk.ipynb)
16-
- [LangChain Integration](https://github.com/ScrapeGraphAI/scrapegraph-sdk/blob/main/cookbook/zillow-forsale/scrapegraph_langchain.ipynb)
17-
- [LlamaIndex Integration](https://github.com/ScrapeGraphAI/scrapegraph-sdk/blob/main/cookbook/zillow-forsale/scrapegraph_llama_index.ipynb)
15+
- [SDK Implementation](https://github.com/ScrapeGraphAI/scrapegraph-sdk/blob/main/cookbook/homes-forsale/scrapegraph_sdk.ipynb)
16+
- [LangChain Integration](https://github.com/ScrapeGraphAI/scrapegraph-sdk/blob/main/cookbook/homes-forsale/scrapegraph_langchain.ipynb)
17+
- [LlamaIndex Integration](https://github.com/ScrapeGraphAI/scrapegraph-sdk/blob/main/cookbook/homes-forsale/scrapegraph_llama_index.ipynb)
1818
</Note>
1919

2020
## The Goal
@@ -43,7 +43,7 @@ from typing import List, Optional
4343
from scrapegraph_py import Client
4444

4545
# Schema for a single house listing
46-
class HouseListingSchema(BaseModel):
46+
class HouseSchema(BaseModel):
4747
price: int = Field(description="Price of the house in USD")
4848
bedrooms: int = Field(description="Number of bedrooms")
4949
bathrooms: int = Field(description="Number of bathrooms")
@@ -57,15 +57,15 @@ class HouseListingSchema(BaseModel):
5757
agency: str = Field(description="Agency listing the house")
5858

5959
# Schema containing a list of house listings
60-
class ZillowHouseListingsSchema(BaseModel):
61-
houses: List[HouseListingSchema] = Field(description="List of house listings on Zillow or similar platforms")
60+
class HouseListingsSchema(BaseModel):
61+
houses: List[HouseSchema] = Field(description="List of house listings on Homes.com or similar platforms")
6262

6363
client = Client(api_key="your-api-key")
6464

6565
response = client.smartscraper(
66-
website_url="https://www.zillow.com/homes/for_sale/",
66+
website_url="https://www.homes.com/san-francisco-ca/?bb=nzpwspy0mS749snkvsb",
6767
user_prompt="Extract property listings information",
68-
output_schema=ZillowHouseListingsSchema
68+
output_schema=HouseListingsSchema
6969
)
7070
```
7171

cookbook/images/homes-banner.png

1.82 MB
Loading

cookbook/images/zillow-banner.png

-372 KB
Binary file not shown.

introduction.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ ScrapeGraphAI is a powerful suite of LLM-driven web scraping tools designed to e
6262

6363
## Core Services
6464

65-
- **SmartScraper**: AI-powered extraction for complex websites
66-
- **LocalScraper**: Fast, efficient scraping for simple pages
65+
- **SmartScraper**: AI-powered extraction for any website
66+
- **LocalScraper**: AI-powered extraction for local HTML content
6767
- **Markdownify**: Convert web content to clean Markdown format
6868

6969
## Implementation Options

mint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"cookbook/examples/company-info",
114114
"cookbook/examples/github-trending",
115115
"cookbook/examples/wired",
116-
"cookbook/examples/zillow",
116+
"cookbook/examples/homes",
117117
"cookbook/examples/research-agent"
118118
]
119119
},
207 KB
Loading
240 KB
Loading
241 KB
Loading

services/localscraper.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ description: 'AI-powered extraction from local HTML content'
44
icon: 'file-code'
55
---
66

7+
<Frame>
8+
<img src="/services/images/localscraper-banner.png" alt="LocalScraper Service" />
9+
</Frame>
10+
711
## Overview
812

913
LocalScraper brings the same powerful AI extraction capabilities as SmartScraper but works with your local HTML content. This makes it perfect for scenarios where you already have the HTML content or need to process cached pages, internal documents, or dynamically generated content.

services/markdownify.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ description: 'Convert web content to clean, structured markdown'
44
icon: 'markdown'
55
---
66

7+
<Frame>
8+
<img src="/services/images/markdownify-banner.png" alt="Markdownify Service" />
9+
</Frame>
10+
711
## Overview
812

913
Markdownify is our specialized service that transforms web content into clean, well-formatted markdown. It intelligently preserves the content's structure while removing unnecessary elements, making it perfect for content migration, documentation creation, and knowledge base building.

0 commit comments

Comments
 (0)