Skip to content

Instantly share code, notes, and snippets.

@Swipe650
Created August 16, 2018 19:32
Show Gist options
  • Save Swipe650/ae46fa9736f21f77fca74abddd3c74c1 to your computer and use it in GitHub Desktop.
Save Swipe650/ae46fa9736f21f77fca74abddd3c74c1 to your computer and use it in GitHub Desktop.
#!/bin/bash
onair=$(curl -s https://www.lbc.co.uk | xmllint --html --nowarning --xpath '//section/div/span/a[1]/text()' - | tail -c 25)
echo $onair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment