Created
February 1, 2024 23:50
-
-
Save starch0/6edde7bad03929c65762ec6a5ece62f5 to your computer and use it in GitHub Desktop.
smtg on .jl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
links = Set() | |
for node in eachmatch(HTMLElement, html.root, with=true) | |
if node.tag == "a" && haskey(node.attributes, "href") | |
push!(links, node.attributes["href"]) | |
end | |
end | |
return links | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment