[Pkg-gourmet-changes] gourmet/src/lib/importers/html_plugins
foodnetwork.py, NONE, 1.1
seanius at haydn.debian.org
seanius at haydn.debian.org
Tue Sep 13 18:46:08 UTC 2005
- Previous message: [Pkg-gourmet-changes] gourmet/debian TODO, 1.3, 1.4 changelog, 1.3,
1.4 control, 1.2, 1.3 dirs, 1.1.1.1, 1.2 docs, 1.1.1.1,
1.2 rules, 1.3, 1.4
- Next message: [Pkg-gourmet-changes] gourmet/debian TODO, 1.4, 1.5 changelog, 1.4,
1.5 control, 1.3, 1.4 dirs, 1.2, 1.3 gourmet.1, NONE,
1.1 manpage.1, 1.1.1.1, NONE menu, 1.1.1.1, 1.2 postinst, NONE,
1.1 postrm, NONE, 1.1 prerm, NONE, 1.1 recbox.xpm, NONE,
1.1 rules, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/pkg-gourmet/gourmet/src/lib/importers/html_plugins
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv3185/src/lib/importers/html_plugins
Added Files:
foodnetwork.py
Log Message:
just about ready for that first release...
--- NEW FILE: foodnetwork.py ---
SUPPORTED_URLS = ['www.foodnetwork.com']
SUPPORTED_URLS_REGEXPS = ['.*foodnetwork\.com']
recipe_summary = {'tag':'span',
'attributes':{'class':'guttertableheader2'},
'regexp':'Recipe Summary',
'moveto':'nextSibling'}
RULES = [
['title',
[{'tag':'span',
'attributes':{'class':'headline1'}
}],
'text',
],
['source',
[{'tag':'tr',
'attributes':{'class':'small_text'}},
{'tag':'td',
'regexp':'Recipes? courtesy.*'}],
'text',
('Recipes?\s+courtesy\s+(.*)',True),
],
['instructions',
[{'tag':'tr',
'attributes':{'class':'small_text'}},
],
'text',
],
['ingredient_block',
[#{'tag':'table'},
#{'tag':'tr',
#'attributes':{'valign':'top'},
# 'index':0},
{'tag':'td',
'attributes':{'class':'bodytext'},
},
{'tag':'span',
'attributes':{'class':'bodytext'},
#'index':0
}
],
'text'],
['instructions',
[{'tag':'td',
'attributes':{'class':'bodytext'},
},
{'tag':'p'}],
'text'
],
['preptime',
[recipe_summary],
'text',
('Prep Time:\s*(.*)',True)],
['cooktime',
[recipe_summary],
'text',
('Cook Time:\s*(.*)',True)],
['servings',
[recipe_summary],
'text',
('Yield:\s*(.*)\s*servings?',True)],
#['instructions',
# [recipe_summary],
# 'text',
# ],
['image',
[{'tag':'img',
'attributes':{'alt':'Click here to view a larger image.'}
}],
'src',
],
['instructions',
[{'tag':'span',
'attributes':{'class':'bodytext'},
'index':(1,None)},
],
'text'
],
['instructions',
[{'tag':'p',
#'index':(0,None)
}
],
'text'
]
# end RULES
]
- Previous message: [Pkg-gourmet-changes] gourmet/debian TODO, 1.3, 1.4 changelog, 1.3,
1.4 control, 1.2, 1.3 dirs, 1.1.1.1, 1.2 docs, 1.1.1.1,
1.2 rules, 1.3, 1.4
- Next message: [Pkg-gourmet-changes] gourmet/debian TODO, 1.4, 1.5 changelog, 1.4,
1.5 control, 1.3, 1.4 dirs, 1.2, 1.3 gourmet.1, NONE,
1.1 manpage.1, 1.1.1.1, NONE menu, 1.1.1.1, 1.2 postinst, NONE,
1.1 postrm, NONE, 1.1 prerm, NONE, 1.1 recbox.xpm, NONE,
1.1 rules, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pkg-gourmet-changes
mailing list