human
Python: BeautifulSoup - get an attribute value based on the name attribute
assistant
Here is some code to beautifulSoup get value associated with attribute 'content' where attribute 'name' is equal to 'City' in tag 'meta' in HTML parsed string `soup`

soup.find('meta', {'name': 'City'})['content']

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.