![]() |
Vielleicht weiß jemand wie ich am besten Daten aus einen HTML Quelltext in eine Perl Datenbank konvertieren kann ohne sie neu Eingeben zu müssen.
Beispiel (HTML) <BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre><table border="1" width="99%"> <tbody> <tr> <td bgColor="#00FF00" width="81%"><font color="#000000" face="Arial">10baseT PCI combo NIC (Trendnet)</font></td> <td bgColor="#00FF00" width="7%"><font color="#000000" face="Arial">Yes</font></td> <td bgColor="#00FF00" width="8%"><font color="#000000" face="Arial">NT 4.0</font></td> <td bgColor="#00FF00" width="7%"><font color="#000000" face="Arial">11/99</font></td> </tr> </tbody> </table> <table border="0" width="99%"> <tbody> <tr> <td width="100%"><font size="1" face="Arial">Works fine, But am having trouble getting 2 cards to work together (Tested with SP6).</font></td> </tr> </tbody> </table> <table border="1" width="99%"> <tbody> <tr> <td bgColor="#00FF00" width="81%"><font color="#000000" face="Arial">128k external ISDN USB Adapter (Dynalink)</font></td> <td bgColor="#00FF00" width="7%"><font color="#000000" face="Arial">Yes</font></td> <td bgColor="#00FF00" width="8%"><font color="#000000" face="Arial">W2000</font></td> <td bgColor="#00FF00" width="7%"><font color="#000000" face="Arial">02/00</font></td> </tr> </tbody> </table> <table border="0" width="99%"> <tbody> <tr> <td width="100%"><font size="1" face="Arial">You just plug it in, install the driver and you are ready, although i couldn`t install the FAX software.</font> </td> </tr> </tbody> </table> <table border="1" width="99%"> <tbody> <tr> <td bgColor="#00ff00" width="81%"><font color="#000000" face="Arial">182i PCI Sound Card (TerraTec)</font></td> <td bgColor="#00ff00" width="7%"><font color="#000000" face="Arial">Yes</font></td> <td bgColor="#00ff00" width="8%"><font color="#000000" face="Arial">W2000</font></td> <td bgColor="#00ff00" width="7%"><font color="#000000" face="Arial">10/99</font></td> </tr> </tbody> </table> <table border="0" width="99%"> <tbody> <tr> <td width="100%"> <font size="1" face="Arial">-</font></td> </tr> </tbody> </table> [/code] Datenbank (Flat) <BLOCKQUOTE><font size="1" face="Verdana, Arial">code:</font><HR><pre> 10baseT PCI combo NIC|Trendnet|Yes|NT 4.0|11/99|Works fine, But am having trouble getting 2 cards to work together (Tested with SP6).|Hardware| 128k external ISDN USB Adapter|Dynalink|Yes|W2000|02/00|You just plug it in, install the driver and you are ready, although i couldn`t install the FAX software. |Hardware| 182i PCI Sound Card|TerraTec|Yes|W2000|10/99|-|Hardware| [/code] Vielleicht läßt es sich mit einen Perl Script realisieren. Hat irgendjemand eine Idee? Gruß, Philipp |
Hallo
Was soll eine Perldatenbank sein. Meinst du Mysql ? Soweit ich weiß, ist es nicht möglich HTML-Daten automatisch in eine Datenbank zu bekommen. Du wirst nicht herumkommen deine Datenbank mit der Hand zu füttern. Sloter |
Ja, normalerweise wird die HTML-Seite aus einer bestehenden Datenbank generiert und nicht umgekehrt. Wie du selbst geschrieben hast, könntest du ein PERL-Skript schreiben, welches den HTML-Code nach deinen Wünschen analysiert und die Werte der Tabellenzellen ausliest und in eine Datenbank reinschreibt. Mir sind keine bekannten Skripts in der Richtung bekannt.
|
Alle Zeitangaben in WEZ +2. Es ist jetzt 11:24 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag