mIRC Home    About    Download    Register    News    Help

Print Thread
#86041 09/06/04 05:20 AM
Joined: Jun 2004
Posts: 2
X
xenos Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
X
Joined: Jun 2004
Posts: 2
Ok got a questin here. I have seen how you can get cnn news. I was wondering how i could get information from a web site and then haev it come up in the channel. This is for a game. Example is theres a web site with foders and in there theres news on wat is going on in the game. How do i go about getting the information form the web site and then parse it into the channel?

#86042 09/06/04 06:18 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Generally you connect to the website and make a HTTP request. Then, you parse the incoming data and collect the information you need.

Since you will be coping with HTML text, you may want to keep this tags-stripper handy:

; Usage: $nohtml(string)
alias nohtml var %a | !.echo -q $regsub($1-,/^.*?>|<.*?>|<.*?$/g,,%a) | return %a


If you need further help, post here the code you've got, and let us know the address of the page in question so we can experiment with it ourselves.

#86043 09/06/04 08:55 PM
Joined: Jun 2004
Posts: 2
X
xenos Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
X
Joined: Jun 2004
Posts: 2
http://e3.swirve.com/data/

im a complete noob i dont realy have anything why i need help:)
i have looked at eggdrop too as i have a server.
icq is 7854384


Link Copied to Clipboard