Sep-24-2021, 11:31 AM
Hey guys,
In practicing some webscrapping with BeautifulSoup and Selenium.
Using the find_all to extract a class, I get the following list:
Thanks a lot.
In practicing some webscrapping with BeautifulSoup and Selenium.
Using the find_all to extract a class, I get the following list:
Output:['w_A', 'w_C', 'w_B', 'mr1', 'mt1', 'ph1']
Here's a snippet of the code that get's me this:mt2_mb2 = soup.find('div', {'class': 'mt2 mb2'}) span_2 = mt2_mb2.find('span')['class'] print(span_2)What I want to do, is get all of those items together. So in other words, I want to get the output to look like this:
Output:w_A w_C w_B mr1 mt1 ph1
Could someone kindly enlighten me how to do this?Thanks a lot.