egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

website, login, parse html, output results...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
TheRudy
Voice


Joined: 22 Oct 2005
Posts: 6

PostPosted: Sat Oct 22, 2005 5:22 am    Post subject: website, login, parse html, output results... Reply with quote

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&nbsp;&nbsp;
<font color="87CEEB">*</font></th>
<th><a href="ainfo.php?session=3c546726f1fb&allytag=GP"><font color='lime'>GP</font></a></th>
<th>
&nbsp;
</th>
<th>48</th>
<th>1564</th>
<th>32</th>
</tr>

Things that needs to parsed out are in bold:
<th>20&nbsp;
<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
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sat Oct 22, 2005 9:48 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber