Go to example tasks

Extract HTML Tables From Web Pages as JSON

Pulls every table on a page into rows of cells you can load straight into a dataframe. No copy-paste, no merged-header cleanup. $0.003 per page.

Try for free
Playwright Scraper — Python, Any Website
Playwright Scraper — Python, Any Websiteeszetael_lab/reliable-playwright-scraper
URL
Title
Text
Text cut at 5000
+1 field
Text
Number
Boolean
List
Object

Input

Start URLs(required)
url:https://en.wikipedia.org/wiki/List_of_programming_languages
Page function:async def page_function(page, context, request): rows = await page.eval_on_selector_all( 'table tr', 'els => els.map(r => Array.from(\n r.querySelectorAll(\'th,td\')).map(c => c.innerText.trim()))') return {'url': request.url, 'rowCount': len(rows), 'rows': [r for r in rows if r][:500]}
Max pages to crawl:1
Max concurrency:5
Request timeout (seconds):90
Wait until:load
Respect robots.txt:true
Proxy configuration:{1 field}
Block images, fonts and media:true
Session handling:auto
Max items:1
Deliver records from pages that returned nothing:false

Output fields

URL
Title
Text
Text cut at 5000
Fully loaded

How it works

Sign up on Apify or log in

The Playwright Scraper — Python, Any Website Actor is ready to run with the inputs already set for "Extract HTML Tables From Web Pages as JSON". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Extract HTML Tables From Web Pages as JSON" task

The Playwright Scraper — Python, Any Website Actor will start running based on the input automatically. You can also change all the input fields, like start urls, page function, and more, to match your specific use case.

Receive the "Extract HTML Tables From Web Pages as JSON" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as URL, title, text, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Extract HTML Tables From Web Pages as JSON" task via API.

Image

Integrate "Extract HTML Tables From Web Pages as JSON" into your workflow

Connect "Extract HTML Tables From Web Pages as JSON" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay