WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Internet (http://www.wcm.at/forum/forumdisplay.php?f=8)
-   -   HTML => Datenbank (http://www.wcm.at/forum/showthread.php?t=7270)

Philipp 11.03.2000 23:46

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>&lt;table border="1" width="99%"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgColor="#00FF00" width="81%"&gt;&lt;font color="#000000" face="Arial"&gt;10baseT
PCI combo NIC (Trendnet)&lt;/font&gt;&lt;/td&gt;
&lt;td bgColor="#00FF00" width="7%"&gt;&lt;font color="#000000" face="Arial"&gt;Yes&lt;/font&gt;&lt;/td&gt;
&lt;td bgColor="#00FF00" width="8%"&gt;&lt;font color="#000000" face="Arial"&gt;NT 4.0&lt;/font&gt;&lt;/td&gt;
&lt;td bgColor="#00FF00" width="7%"&gt;&lt;font color="#000000" face="Arial"&gt;11/99&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;table border="0" width="99%"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="100%"&gt;&lt;font size="1" face="Arial"&gt;Works fine, But am having
trouble getting 2 cards to work together (Tested with SP6).&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;table border="1" width="99%"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgColor="#00FF00" width="81%"&gt;&lt;font color="#000000" face="Arial"&gt;128k
external ISDN USB Adapter (Dynalink)&lt;/font&gt;&lt;/td&gt;
&lt;td bgColor="#00FF00" width="7%"&gt;&lt;font color="#000000" face="Arial"&gt;Yes&lt;/font&gt;&lt;/td&gt;
&lt;td bgColor="#00FF00" width="8%"&gt;&lt;font color="#000000" face="Arial"&gt;W2000&lt;/font&gt;&lt;/td&gt;
&lt;td bgColor="#00FF00" width="7%"&gt;&lt;font color="#000000" face="Arial"&gt;02/00&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;table border="0" width="99%"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="100%"&gt;&lt;font size="1" face="Arial"&gt;You just plug it in, install
the driver and you are ready, although i couldn`t install the FAX
software.&lt;/font&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;

&lt;table border="1" width="99%"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgColor="#00ff00" width="81%"&gt;&lt;font color="#000000" face="Arial"&gt;182i
PCI Sound Card (TerraTec)&lt;/font&gt;&lt;/td&gt;
&lt;td bgColor="#00ff00" width="7%"&gt;&lt;font color="#000000" face="Arial"&gt;Yes&lt;/font&gt;&lt;/td&gt;
&lt;td bgColor="#00ff00" width="8%"&gt;&lt;font color="#000000" face="Arial"&gt;W2000&lt;/font&gt;&lt;/td&gt;
&lt;td bgColor="#00ff00" width="7%"&gt;&lt;font color="#000000" face="Arial"&gt;10/99&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;table border="0" width="99%"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width="100%"&gt;
&lt;font size="1" face="Arial"&gt;-&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
[/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

Sloter 13.03.2000 07:28

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

Angel 13.03.2000 12:24

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