1 Resposta
+ 9
Selenium provides browser automation, while bs4 (beautifulsoup) is just a parser (but a very good one!). You can think of combining the two, if what you are looking for are ultimately HTML or XML elements (that's what bs4 is good at) and need to navigate through repetitively similar websites (that's what Selenium does well).
But if you need a fully-fledged, spider-like webcrawler, there are other, more powerful frameworks for that - including scrapy:
https://docs.scrapy.org