Skip to content

Commit c6aa423

Browse files
VinciGit00claude
andcommitted
fix: remove trailing comma on headers field in ScrapeRequest model
The trailing comma turned the Field assignment into a tuple, breaking model_dump() serialization (headers always present even when None). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b9c0f56 commit c6aa423

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • scrapegraph-py/scrapegraph_py/models

scrapegraph-py/scrapegraph_py/models/scrape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ScrapeRequest(BaseModel):
5454
},
5555
description="Optional headers to send with the request, including cookies "
5656
"and user agent",
57-
),
57+
)
5858
mock: bool = Field(default=False, description="Whether to use mock mode for the request")
5959
stealth: bool = Field(default=False, description="Enable stealth mode to avoid bot detection")
6060
wait_ms: Optional[int] = Field(default=None, description="The number of milliseconds to wait before scraping the website")

0 commit comments

Comments
 (0)