/ Published in: Bash
It all starts with gummy-stuff.
Expand |
Embed | Plain Text
#!/bin/sh URL='http://www.gummy-stuff.org/Yahoo-data.htm' MY_PWD=`pwd` #lynx -dump -source $URL > ../files/Yahoo-data.htm cd ../files/ # get new gummy data if it changed wget -N $URL cd $MY_PWD #cat ../files/Yahoo-data.htm | perl -ne 'if (s/<B>(\S+)\s*<\/B>\s*<\/TD><TD><font\sface=times\s\S+>\s*(.*)<\/TD>.*/\1 \2/) { print }' # just vars cat ../files/Yahoo-data.htm | perl -ne 'if (s/<B>(\S+)\s*<\/B>\s*<\/TD><TD><font\sface=times\s\S+>\s*(.*)<\/TD>.*/\1/) { chomp; print }' > ../data/yahoo_arg_string.txt
You need to login to post a comment.
