Skip to content

Examples

Sergey Mudrik edited this page Feb 17, 2016 · 5 revisions

#Examples for html2data

  • Get the latest version of Go:

html2data https://golang.org/dl/ 'h3#stable + div h2:get(1)'

  • Get song lyric from current page with Yandex.music from safari:

html2data $(osascript -e 'tell application "Safari" to URL of current tab of window 1') 'div.sidebar-track__lyric-text:html' | perl -pe 's/<br\/>/\n/g; s/<[^>]+>//g'

Clone this wiki locally