We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/microsoft/genaiscript'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
scrape_table_data.genai.mts•454 B
// Launch a browser instance and navigate to a specified URL
const page = await host.browse('https://example.com');
// Select a table element on the page by its test-id
const table = page.locator('table[data-testid="data-table"]');
// Convert the HTML of the table into Markdown format
const markdownTable = await parsers.HTMLToMarkdown(await table.innerHTML());
// Define the converted table for further processing
def('TABLE_MARKDOWN', markdownTable);