def find_ip(body)
lst_proxy = []
regex_ip_port = '\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?:?[0-9]{0,5})\b'
regex_domain_port = '^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}:[0-9]{0,5}$'
#res = body.gsub(/<\/?[^>]+>/, '')
doc = Nokogiri::HTML(body)
#doc.xpath("//text()").to_s
res = doc.xpath("//text()").text
#res_strip = res.split(/(\n)+/)
#puts res
res.each do |part|
temp_part = part.split(" ")
temp_part.each do |sub_part|
if sub_part.match(regex_domain_port) && connect_http_mech_anon(sub_part.match(regex_domain_port))
puts sub_part.match(regex_domain_port)
lst_proxy << sub_part.match(regex_domain_port)
elsif sub_part.match(regex_ip_port) && connect_http_mech_anon(sub_part.match(regex_ip_port))
puts sub_part.match(regex_ip_port)
lst_proxy << sub_part.match(regex_ip_port)
end
end
end
return lst_proxy
end