java -jar jpilot-db.jar -i -t htmltable -x int -u url [-d] -n "title" -o output_file
The HtmlTable Importer reads in an HTML file and depending upon the configuration settings contained within the config file, generates a Pilot-DB database PDB file from the HTML table data.
| option | long option | purpose |
|---|---|---|
| -i | --import | Specifies that you wish to do an "import" |
| -t htmltable | --type | specifies that the type of import you wish to do is "htmltable" |
| -x 2 | --table-index | The table index of the table to import from the HTML |
| -u http://sf.net/test.html | --url | The URL to load the HTML from |
| -d | --headers | Tells the creator that the first row of table data is the header row, this is not necessary if the first row is written with <th></th> elements. |
| -n title | --title | the title of the generated database |
| -o filename | --output-file | the filename of the pdb to generate |
java -jar jpilot-db.jar -i -t htmltable -x 0 -n "Capitals" -u http://www.what-is-the-capital-of.com/50-state-capitals.html -o capitals.pdb -d