• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

There appears to be a woot-off today

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
12.783 its dropping! at this rate we'll never get to bid on the Ohura blow-up doll !!!!!
 
Bash script for getting today's woot:

Code:
#!/bin/bash

clear

echo -n "Retreiving woot..."

wget -q -O/tmp/woot.com http://www.woot.com

echo -e "done.\n"

awk '/"TitleHeader"/' /tmp/woot.com | sed 's/<[^>]*>//g;s/^[ \t]*//;s/[ \t]*$//'
awk '/"PriceSpan"/' /tmp/woot.com | sed 's/<[^>]*>//g;s/^[ \t]*//;s/[ \t]*$//'

rm /tmp/woot.com

echo

Remind me when there's a woot-off, and I'll include the percent left as well as a loop/update option.
 
Yuri, you are an über geek and I love it. You just don't see 'awk' and 'sed' on brewing forums enough. :) Nicely done.
 

Latest posts

Back
Top