View previous topic :: View next topic |
Author |
Message |
TheRudy Voice
Joined: 22 Oct 2005 Posts: 6
|
Posted: Sat Oct 22, 2005 5:22 am Post subject: website, login, parse html, output results... |
|
|
Hi
First, i'm a complete noob to TCL scripting altho i know some programming languages.
What i want to do:
- Login to a website
- Parse out of URL SID (php) id
- attach this url SID id to another page that is protected (no SID in url = redirects back to login site)
- parses out this html code:
Code: |
<tr>
<th>20
<font color="87CEEB">*</font></th>
<th><a href="ainfo.php?session=3c546726f1fb&allytag=GP"><font color='lime'>GP</font></a></th>
<th>
</th>
<th>48</th>
<th>1564</th>
<th>32</th>
</tr>
|
Things that needs to parsed out are in bold:
<th>20
<font color='lime'>GP</font>
<th>48</th>
<th>1564</th>
<th>32</th>
- next to output this into channel when someones says for example !stats
Now, i DO NOT want YOU to write me this script! I want to write it myself but i need some start up points. What do i need to this, where can i see some examples and so on... |
|
Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sat Oct 22, 2005 9:48 am Post subject: |
|
|
how is login done? via HTTP post?
how will the SID beeing returned? cookie? redirect? or will only be visible in URLs contained in the html codes?
generally there are 2 usual ways to parse HTML code
either via tDOM: http://forum.egghelp.org/viewtopic.php?t=9972
or via RE: http://forum.egghelp.org/viewtopic.php?t=4319
examples for REs are found in almost all common scripts accessing html pages. The google script I rewrote also shows an example for the redirect header parsing. _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|