I'm trying to get information from a webpage.
I have to get a certain line out the information.
this is some of the info downloading from the site :
[quote]
Please wait while we transfer you...<br /><br />
(<a href='http://forums.invisionpower.com/index.php?s=a879884673ed47dcca8fd8c50e843da4&act=Search&CODE=simpleresults&sid=796cd05a6e2a84ff5504ffec224403aa&highlite=test'>Or click here if you do not wish to wait</a> </td>
[/quote]
So each line gets put in a var with /sockread
and now i have to get information from that second line. but how do i do this? (i would need the /index.php?s=a879884673ed47dcca8fd8c50e843da4&act=Search&CODE=simpleresults&sid=796cd05a6e2a84ff5504ffec224403aa&highlite=test' part.
i tryed this (that $chr(40) is an "(" ):
[quote]if ( * $chr(40) $+ <a href=' * iswm %') [/quote]
but it dossen't work.
anyone ?
full code :
Code:
alias 12 sockopen req_search forums.invisionpower.com 80
on *:sockopen:req_search:{
sockwrite -n $sockname GET /index.php?act=Search&CODE=simpleresults&mode=simple&forums=all&keywords=test HTTP/1.1