mIRC Home    About    Download    Register    News    Help

Print Thread
#136998 06/12/05 08:23 PM
P
poormillionaire
poormillionaire
P
any script that retrieves the weather from weather.yahoo.com ?
(for example when I type /weather beirut, lebanon )

I will parse the html, I just want the way to post via sockets..

Thanks smile

#136999 06/12/05 08:29 PM
B
benjy355
benjy355
B
The only way I can think of is using $read, and $mid... frown

#137000 07/12/05 01:54 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
Information read from a website is done on a line by line basis, with each line ending in a CRLF code. A line might also be terminated early if the line is longer than what a variable will hold...approximtely 900 characters.

Once you have read a line into a variable (via $sockread), then you can work with it as you wish.

I haven't done much with sockets, myself, but if you will clarify just what it is you're wanting, I'll be happy to assist in any way I can.

If you're wondering how you send information to the site, that is done using /sockwrite.

General help on sockets available via /help sockets


Link Copied to Clipboard