Quote:
Originally Posted by aerodynamik
How would I know I stumbled to the dd's in the next dt-section?
|
What about something like this:
Code:
for section in index.findAll(name=['dt', 'dd']):
if section.name == 'dt':
{do something}
if section.name == 'dd':
{do something else}