code: def _ExtractYandexSearchQuery(self, url):
      
      if 'text=' not in url:
        return None
      _, _, line = url.partition('text=')
      before_and, _, _ = line.partition('&')
      if not before_and:
        return None
      yandex_search_url = before_and.split()[0]
  
      return yandex_search_url.replace('+', ' ')
docs: Extracts a search query from a Yandex search URL.
  
      Yandex: https://www.yandex.com/search/?text=query
  
      Args:
        url (str): URL.
  
      Returns:
        str: search query or None if no query was found.