Cellect

Helps you select data in tables the same way you select cells in a spreadsheet.

It's:

Screencast

Demo

First NameLast NameJob TitleFavorite ColorWars or Trek?Porn NameDate of BirthDream Vacation CityGPAArbitrary Data
JamesMatmanChief Sandwich EaterLettuce GreenTrekDigby GreenJanuary 13, 1979Gotham City3.1RBX-12
TheTickCrimefighter SortaBlueWarsJohn SmithJuly 19, 1968AthensN/AEdlund, Ben (July 1996).
JokeySmurfGiving Exploding PresentsSmurflowSmurfSmurflane SmurfmuttSmurfuary Smurfteenth, 1945New Smurf City4.SmurfOne
CindyBeylerSales RepresentativeRedWarsLori QuiveyJuly 5, 1956Paris3.43451
CaptainCoolTree CrusherBlueWarsSteve 42ndDecember 13, 1982Las Vegas1.9Under the couch

Script

There are two versions of the script, one that depends on jQuery and the other that doesn't:

The jQuery version supports more browsers, whereas the non-jQuery version adds less code to each page and is easier to distribute as a Chrome extension. The non-jQuery version invokes web standards directly and supports Firefox and Chrome. It works well as a bookmarklet or a user script where, once installed, cross-browser support isn't an issue.

It's also available as a a jQuery plugin.

Bookmarklet

Bookmark one of these two versions, or drag it to your bookmarks toolbar:

Greasemonkey

Here is a user script for Greasemonkey or Chrome.

Install the Greasemonkey Firefox extension, then install the script.

Chrome supports user scripts out of the box, but recent versions will only allow you to install them from the Chrome Web Store by default.

You can also get the script from Userscripts.org.

Features

Currently this is a minimum product, hopefully it's viable. No work has been done on interaction with colspans or rowspans, or interaction with nested tables.

It doesn't work with PDF documents, but here is a very cool project that does.

In future it might:

Why?

CRUD webapps are frequently built for jobs that users previously addressed with spreadsheets. Despite the advantages of webapps, venerable spreadsheets still deliver great features and user experience. Hopefully this script improves integration between web pages and spreadsheets. With it you should be able to scrape or export any table on the web.

There are also a lot of other great tools to integrate spreadsheet features with webapps:

And there is at least one Firefox extension to enhance tables on any web page: TableTools2. And Firefox lets you select tables out of the box, by holding down the control key.

There are also web-based spreadsheets like Google Spreadsheet and SocialCalc.

Hopefully even more data will get shared in the form of tables.

Fork me on GitHub