Parsing meta tags efficiently with lxml?
I think lxml supports most CSS selectors, so you could use an attribute selector:
doc3.cssselect('meta[property="og:locality"]')[0].get('content')
You could use this XPath selector: //meta[@property='og:locality']/@content