Best way to handle expression resulting in attribute error : 'NoneType' during loop

前端 未结 0 1890
旧时难觅i
旧时难觅i 2020-12-05 06:41

In looping through a beautiful soup object sometimes an element exists in one iteration but not the next. As I am also extracting the text with a chain of .text afterwards,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题