table-scraper
Version:
Easily scrape any website's html table data into an array of JavaScript objects.
20 lines (19 loc) • 393 B
HTML
<html>
<head>
</head>
<body>
<h1>Single Table Page Title!</h1>
<table>
<thead>
<tr>
<th>State</th><th>Capital City</th><th>Pop.<th>
</tr>
</thead>
<tbody>
<tr><td>Minnesota</td><td>Saint Paul</td><td>3</td></tr>
<tr><td>New York</td><td>Albany</td><td>Eight Million</td></tr>
</tbody>
</table>
<div><p>some other element</p></div>
</body>
</html>