Can Open Data Table be created from a HTML table?, beginner |
![]() ![]() |
Can Open Data Table be created from a HTML table?, beginner |
| Matthew R |
Nov 16 2009, 10:04 AM
Post
#1
|
|
Group: Members Posts: 4 |
I see a lot of info on how to generate open data tables from url querystrings but not much on how to create one from an HTML table on a webpage, if indeed that's possible?
|
|
|
|
| sh1mmer |
Nov 16 2009, 11:44 AM
Post
#2
|
|
Group: Yahoos Posts: 107 |
I see a lot of info on how to generate open data tables from url querystrings but not much on how to create one from an HTML table on a webpage, if indeed that's possible? I made a table for that... http://kid666.com/yql/forms2tables.xml |
|
|
|
| Matthew R |
Nov 16 2009, 11:52 AM
Post
#3
|
|
Group: Members Posts: 4 |
Thanks! I take it this is javascript for YQL Execute?
|
|
|
|
| Matthew R |
Nov 16 2009, 01:01 PM
Post
#4
|
|
Group: Members Posts: 4 |
I tried the following query and it didn't seem to like it:
QUOTE use "http://kid666.com/yql/forms2tables.xml" as forms2tables; select * from forms2tables where url="http://www.opendatani.info/datafiles/index.html" and xpath="//table[@class='data']/" output: QUOTE <?xml version="1.0" encoding="UTF-8"?> I'm not totally clued up on xpath but I think that should get the table i'm after (it's buried inside quite a few divs though but I don't think that should make a difference with the query I passed) |
|
|
|
![]() ![]() |