Nafuda
English
Nafuda是一个可以轻松获取网站标题的库!在日语中,“Nafuda”意味着一个标牌。
待办事项:在此处编写
Japanese
Nafuda是一个可以轻松获取Web网站标题的库。名字来源于“名签”(类似于Kanna或Ji那样的事物)。
インストール
Pod
文件
pod 'Nafuda'
用法
Nafuda(link: "https://github.com/p1atdev/Nafuda").getTitle(completion: { response in
switch response.status {
case .success:
print("Success! The title of the site is \(response.title)")
case .fail:
print("Faild. The site may not have a title.")
case .error: //TODO: I'll change the name of this one later.
print("Faild. The site could not be accessed. The site may not exist.)
}
})