When you did
htmlF = FullList[1]
The top level retrieved is the ol
tag. There are no nested ol
within it which is why when you call .find('ol')
on it you get None
.
You can check with:
print(htmlF.name)
>> 'ol'
You can do
htmlF.find('li')
for example to get first child as li
are children within the parent ol
you set htmlF
to.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…