you can try with this, i had similar topic :
https://forums.alliedmods.net/showthread.php?t=311173
Code:
#include <httpx>
#include <regex>
new Buffer[ 1024 ]
HTTPX_Download( "your site", _, "when_it_finish", "progress" ) //see this at HTTP:X
public when_it_finish() client_print( 0, print_chat, "download page finished" )
public progress( id )
{
new RegeX:res
while ( ( len = HTTPX_GetData( Buffer, charsmax( Buffer ) ) ) )
{
new error[50], num
new Regex:res=regex_match(Buffer, "voturi-azi^">(.*?)</a>", num, error, 49)
if(res)
{
new wanted_text[300] // create buffer to store wanted_text
regex_substr(res, 1, wanted_text, charsmax(wanted_text)); // retrieve wanted_text
server_print("zm vote: %s", wanted_text); // wanted_text: I am wanted
regex_free(res); // free the regex handle to prevent memory leak
}
}
return PLUGIN_CONTINUE
}
i hope it helps
__________________