replaced deprecated method from BeautifulSoup