web_extract_tables
Extract HTML tables from a web page and convert them into structured data with headers and rows. Optionally specify a table index to retrieve a specific table.
Instructions
Extract tables from a web page as structured data.
Fetches a page and extracts HTML tables, converting them to a structured format with headers and rows.
Example: web_extract_tables(url="https://example.com/data")
web_extract_tables(
url="https://example.com/report",
table_index=0 # Get only the first table
)Args: url: The URL to extract tables from table_index: Specific table index to extract (optional, 0-based) timeout: Request timeout in seconds (default: 30)
Returns: Dictionary with extracted tables
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to extract tables from | |
| table_index | No | Specific table index to extract (optional, 0-based) | |
| timeout | No | Request timeout in seconds (default: 30) |