Urbandictionary.com used to have API in service, but it's been discontinued. API would have made the whole script making so much simpler.