scinfu / SwiftSoup

SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
https://scinfu.github.io/SwiftSoup/
MIT License
4.48k stars 339 forks source link

I'm been trying to load HTML from websites that have dynamic/lazy loading #269

Closed tomtao2022 closed 2 weeks ago

tomtao2022 commented 3 months ago

let html = try String.init(contentsOf: “https://skynet.certik.com/leaderboards/new-launch”) // parse it into a Document document = try SwiftSoup.parse(html)

let links: Elements = try document.getElementsByClass("group contents [&:last-child>*]:border-b-0 ")

       for link in links {
                      debugPrint(link)
                 }

can't get data Elements, because websites that have dynamic/lazy loading. i checked html no related data

such as

71 GPTVerse 76.52 Not Verified $0.03409 6.56%

any idea ?

mohammedamehry commented 2 months ago

SwiftSoup cannot handle dynamic content loading its like jsoup for android .