When I search for tags which contain specific text in BeautifulSoup, I use find_all(string='text I want')
:
soup = BeautifulSoup('<a id="someid">stackoverflow</a>', 'lxml')
soup.find_all(string='stackoverflow')
But I recently found that I can do so by
soup.find_all(text='stackoverflow')
I went over the documentation for BeautifulSoup 4, but I couldn't find any clue on find_all with text argument.
Is there any difference?