Skip to content

Instantly share code, notes, and snippets.

@neerajvashistha
Last active September 25, 2018 11:57
Show Gist options
  • Save neerajvashistha/d903bf9058e1dbc319f29968914d54c4 to your computer and use it in GitHub Desktop.
Save neerajvashistha/d903bf9058e1dbc319f29968914d54c4 to your computer and use it in GitHub Desktop.
while true; do score=`python -c 'import requests,re;from bs4 import BeautifulSoup; print(re.search(r"([A-Z]{3})([0-9]+\/[0-9]+ \([0-9]+.[0-9]\/[0-9]+ ov\))", BeautifulSoup(requests.get("http://www.espncricinfo.com/ci/engine/match/index.html").text[46695:48995],"lxml").text.strip()).group())'`; notify-send -t 10000 "Live match Score" "$score"; sleep 60; done &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment