Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. $url = "https://www.proxynova.com/proxy-server-list/";
  2. $a = getContent($url);
  3. $b = explode("abbr ", $a);
  4. $frst = 0;
  5. $proxies = array();
  6. foreach ($b as $key => $value) {
  7. if ($frst == 0) {
  8. $frst = 1;
  9. continue;
  10. }
  11. $proxy = explode(""", explode("title="", trim($value))[1])[0];
  12. $port = explode(" ",explode("Port ", trim($value))[1])[0];
  13. if (trim($port) == "") {
  14. continue;
  15. }
  16. $myProxy = $proxy . ":" . $port;
  17. array_push($proxies, $myProxy);
  18. break;
  19. }
  20. $tag = json_encode($proxies);
  21. $tag = str_replace("[","", $tag);
  22. $tag = str_replace("]","", $tag);
  23. $tag = str_replace('"','', $tag);
  24. sm($chatID, "$tag");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement