You must log in to the site through 2 forms and a button, for subsequent parsing
How to do it using the Kanna library (or any other, if you know)
Here is what I have:
func displayURL(){ let myURLAdress = "http://someshitsite.ru/mobile/shared/default.aspx" let myURL = URL(string: myURLAdress) let URLTask = URLSession.shared.dataTask(with: myURL!){ myData, response, error in guard error == nil else {return} let myHTMLString = String(data: myData!, encoding: String.Encoding.utf8) print(myHTMLString!) if let doc = HTML(html: myHTMLString!, encoding: .utf8) { print(doc.title!) for link in doc.xpath("//a | //link") { print(link.text!) } } } URLTask.resume() } But the forms themselves and the button
<input class="textbox" tabindex="1" id="name" name="name" type="text" title="Логин"> <input class="textbox" tabindex="2" id="password" name="password" type="password" title="Пароль"> <input type="submit" tabindex="3" id="enter" name="enter" title="Войти" value="Войти" class="btninput">