Tuesday, March 2, 2010

Progress

We've made some good progress so far, we are working on a perl progran and a python program that will send emails through gmail. We are also working with a couple programs(perl & python) for using the twitter API.

In terms of getting data to send so far this hacked together string of commands works pretty well at getting the New York Lottery results:

lynx -dump http://nylottery.org/index.php| grep -A 33 "Mega Millions"|grep -B 34 "\-\-" | sed 's/\[.*\]//g'| sed s/"Past Year's Numbers"//g | sed s/"Payout Info"//g | sed 's/^[ \t]*//;s/[ \t]*$//' | sed '/^$/d'

We're working on doing this in pure perl and python to lessen the dependency on outside programs being installed and hackishness of the solution.

No comments:

Post a Comment