Getting website text in Swift 3

Last month I noted that Swift 2 had not yet dropped its Objective-C origins when it came to retrieving website text. Fortunately, Swift 3 has great advances in this area. Getting source of a webpage is now a simple and straightforwards process…

let url:NSURL = NSURL(string: "http://ebscer.com")!
do
{
let responseText:String = try String(contentsOf:url,
encoding:String.Encoding.utf8)
}
catch let error
{
print("Error: \(error)")
}