this works
import httpclient, xmltree, htmlparser, strtabs
import nimquery
var client = newHttpClient()
var url = "https://www.instagram.com/p/B1oqkXKFlcD"
var htmlsrc = client.getContent(url)
let xml = parseHtml(htmlsrc)
let elements = xml.querySelectorAll("[property='og:image']")
for e in elements:
echo e.attrs["content"]
Run
- How to use extract string with contains a certain pattern? anta40
- Re: How to use extract string with contains a certain patt... SolitudeSF
- Re: How to use extract string with contains a certain ... anta40
- Re: How to use extract string with contains a cert... filip
- Re: How to use extract string with contains a ... SolitudeSF
