Created
August 20, 2017 00:11
-
-
Save amscotti/e5aaacef6d738078c65201a94fe7cfb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listofemails = new File("email_list.txt").text | |
listofemails.eachLine { it -> | |
def respons = new XmlSlurper().parseText(new URL("http://www.stopforumspam.com/api?email=${it}").text) | |
if (respons.appears.text() == "yes") { | |
println "${it} has been reported ${respons.frequency.text()} times on stopforumspam.com" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment