Added beautifulsoup and passed tag as parameter.