Top

$parse / $parseAsync


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  7.8
Scores Submitted  6
Date Added  Jan 14, 2008
Last Updated  Jan 14, 2008
Tags  asynchronous  com  sockets 
  Bookmark and Share

Introduction

This snippet allows you to get the content of small websites and return them back!

$parse(URL[,argument1,argument2,...])

URL is a string where you can place %s markers which will be filled with the arguments you specify.

As a bonus theres an asynchronous version too, while the page is downloading mIRC can go on, once its downloaded it will perform the command you specifed on the recieved data!

$parseAsync (callback,URL[,argument1,argument2,...])

examples:
Code:

//echo -a $parse(http://hiscore.runescape.com/index_lite.ws?player=%s,zezima)

Code:

//echo -a $parse(http://rs.facepwn.com/Parsers/imdb.php?movie=%s,Devils+Advocate)

Code:

//echo -a $parse(http://rs.facepwn.com/Parsers/stats.php?user=%s&c1=%s&c2=%s,zezima,3,7)

Code:

//noop $parseAsync(echo -a Recieved:,http://rs.facepwn.com/Parsers/stats.php?user=%s&c1=%s&c2=%s,zezima,4,7)



Grab the Code

Comments

  (3)  RSS
Mpdreamz
Comments: 29
 
mIRC Snippet:  $parse / $parseAsync
Posted on Jan 16, 2008 10:41 am
wonders who rated this a 1.0 but failed to let me know why :(
Spartacus
Comments: 8
 
mIRC Snippet:  $parse / $parseAsync
Posted on Jan 19, 2008 10:15 pm
Someone needs to fix this rating system .. it must be broken :D This code is quite spiffy and works like a charm :P
Korvin
Comments: 238
 
mIRC Snippet:  $parse / $parseAsync
Posted on Jan 20, 2008 1:30 am
Very nicely and thoroughly done, 8/10

Please Register or Login to start posting comments.
Bottom