06-06-2020, 15:29 +0200
AuthorPost
Seeks  09-14-2006, 15:50   ICQ
TCL - Lehrling
Member since 09/2006
1 Post
Location: berlin
hat vll einer n beispiel wie ich von einer website den inhalt auslese? das sind nur 3 zeilen auf der website mehr sind das nicht die brauch ich aber alle 3 in verschiedene vars --->

$line1
$line2
$line3

vll kann ja einer helfen  :wand:
This post was edited 1 times, last on 09-14-2006, 16:42 by Seeks
Gotisch  04-09-2008, 00:44   ICQ
(Moderator)
Member since 01/2006
19 Posts
Location: Europe
                                                                                                                              
1
2
3
4
5
package require http; set thepage [http::data [set token [http::geturl "www.example.com"]]]; http::cleanup $token

foreach {line1 line2 line3} [split $thepage "\n"] {}

return "line1 = $line1 line2 = $line2 line3 = $line3"


oder so :)
Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen | Time: 154.3 msec, CPU time: 59.5 msec, 33 Database queries in 114.7 msec | 3.3 kB (12.4 kB) | Timezone: +0200