Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = "https://www.proxynova.com/proxy-server-list/";
- $a = getContent($url);
- $b = explode("abbr ", $a);
- $frst = 0;
- $proxies = array();
- foreach ($b as $key => $value) {
- if ($frst == 0) {
- $frst = 1;
- continue;
- }
- $proxy = explode(""", explode("title="", trim($value))[1])[0];
- $port = explode(" ",explode("Port ", trim($value))[1])[0];
- if (trim($port) == "") {
- continue;
- }
- $myProxy = $proxy . ":" . $port;
- array_push($proxies, $myProxy);
- break;
- }
- $tag = json_encode($proxies);
- $tag = str_replace("[","", $tag);
- $tag = str_replace("]","", $tag);
- $tag = str_replace('"','', $tag);
- sm($chatID, "$tag");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement