[ale] Automatic recipe downloads using Firefox
James P. Kinney III
jkinney at localnetsolutions.com
Thu Dec 28 18:51:10 EST 2006
On Thu, 2006-12-28 at 17:07 -0500, Daniel Howard wrote:
> OK, ready for a wild question? My mother-in-law who lives with us is a
> French chef and watches the Food Network all day. I spend countless
> hours printing out recipes from the food network web site for her (and
> more hours at the Gym working those recipes off of my waistline), most
> of which she can't recall the exact show or episode or even the right
> key words of the recipe she wants. She gets all excited trying to
> recall the details and yells suggestions of key words to try. Stress.
>
> There are only a few shows that she watches all the time and I can get
> the times they run from the program guide. On the main page of the food
> network web site, there is a link to the current show and links to the
> recipes on that show.
>
> So, is there any way to set up a cron job or similar to go to the Food
> network's web site when her shows are on and search for the text
> "Featured recipes" and then automate the process of printing each
> recipe? My cardiovascular system thanks you in advance.
Grab the main page with a cron job that runs a wget. Search through the
page to find "Featured Recipes". Then grab the next <table>...</table>
and pull out the href's. Those are the links to the recipes you want.
Use wget on each link to grab the page(s) then find the href with the
phrase "PRINT-RECIPE-FULL-PAGE" and wget that and dump it to the
printer.
>
> Regards,
> Daniel
>
--
James P. Kinney III
CEO & Director of Engineering
Local Net Solutions,LLC
770-493-8244
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the Ale
mailing list