Writing a script to extract wining lotto #'s from the html web page. however when its time to exract i notice that the page has no headers e.g date, numbers ect. i need assitance with writting this code pls! Here is my code so far.
!/usr/bin/perl -w use strict; use LWP::Simple; use HTML::Parser (); use HTML::TableExtract; $data = get('http://www.flalottery.com/exptkt/c3.htm')
How do i extract the data from the above website if there are no clearly marked headers? i know the usual syntax should look like this
$te = HTML::TableExtract->new( headers => [qw(Date Price Cost)] ); $te->parse($html_string); # Examine all matching tables foreach $ts ($te->tables) { print "Table (", join(',', $ts->coords), "):\n"; foreach $row ($ts->rows) { print join(',', @$row), "\n"; } }
so how am i going to write the code to extract the data from this page when i have no idea if the above page has headers for the numbers or not?
In reply to Lotto table extraction by LordSoahc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |