I am trying to extract 2 tags, but I am not able to.
I tried the following to get 1 tag:
fortaginsoup.find_all('a'): print (tag.text)
But when I try this for 2 tags, it doesn't work.
fortaginsoup.find_all('a','div'): print (tag.text)
You are missing the square braces. You have to pass an array. Try this:
fortaginsoup.find_all(['a','div']): print (tag.text)