I'm pretty new in script tcl/tcl for eggdrop and I'm trying to make an script which either graps the text written on this page:
http://www.cstv.dk/ccdrift/
Or the tcl script graps the text it self...
Url to grap from: http://www.cybercity.dk/privat/kundeservice/index.phtml
my php ereg code which proberly could be optimized and don't work with tcl ?
Code: Select all
ereg("<p><b>Sidste åbne fejl:</b><hr size=1 noshade color=\"#49735D\">(.*)<p>\n<hr size=1>\n<b>Sidste 5 lukkede fejl:</b><hr size=1>", $search, $report);
Code: Select all
regexp {^.*("<p><b>Sidste åbne fejl:</b><hr size=1 noshade color=\"#49735D\">(.*)<p>\n<hr size=1>\n<b>Sidste 5 lukkede fejl:</b><hr size=1>} $search $report
what useless(?) code I have:
Code: Select all
proc ccdrift {
putserv "TOPIC $chan :$report"
}
Please someboddy help me or give me some hints......
