Why in the parsing of search results Yandex parsed all of the data?

I was given the task from the search results to obtain the coordinates of a particular place, you begin to parse the search results Yandex:
5cfcdeadbcc3b394490980.png
that's the way:
url = 'http://yandex.ru/yandsearch?text=' + city.lower() + 'latitude longitude'
 headers = {'User-Agent': 'Mozilla/7.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
 r = req.get(url, headers=headers)

 with open('./test.html', 'wb') as output_file:
output_file.write(r.text.encode('utf-8'))

 text = "
 with codecs.open('./test.html', "r", "utf_8_sig" ) as file_obj:
 for i in file_obj:
 text += i

 soup = BeautifulSoup(text)
 movie_link = soup.find_all('span', {'class': 'extended-text__short'})

 strr = []
 for i in range(len(movie_link)):
strr.append(str(movie_link[0]))
 st = re.sub(r"[^\sa-za-ЯеЕ0-9,.°\"'-]",",' '.join(strr)).lower()
 print(st)


but in the end not getting the right data. Displays all the info except the right
5cfcdf0d729d0826849601.png

How to get the right data ?)
Thanks in advance)
March 23rd 20 at 19:44
1 answer
March 23rd 20 at 19:46
Place plus full code. Not see some parameters.

Find more questions by tags Beautiful SoupPython