I'm trying to parse this website: http://www.ggjh.co.kr/now/menu.php
with following code:
fileprivate func parseMenuHtml(){
if let url = URL(string: "http://www.ggjh.co.kr/now/menu.php") {
do {
let contents = try String(contentsOf: url)
print(contents)
} catch {
print("error")
// contents could not be loaded
}
} else {
// the URL was bad!
}
It doens't works and I used kanna also but didn't work.
I don't know what is going wrong TT.
With ~.com
, above code works well... .php
might be the problem..?