My problem is a general one, how to chain a series of attribute lookups when one of the intermediate ones might return None, but since I ran into this problem t
None
My best shoot to handle middle-way null attributes like this is to use pydash as sample code on repl.it here
import pydash title = pydash.get(soup, 'head.title.string', None)