I have a line of code in a python script as shown below
for summaries in soup.findAll('div',{'class':'cb-lv-scrs-col cb-font-12 cb-text-complete'}):
#do something with summaries
However, i want summaries to also include items from div
items with another class called cb-scag-mtch-status cb-text-inprogress
I have tried the below as given here - BeautifulSoup findAll() given multiple classes?
for summaries in soup.findAll('div',{'class':['cb-lv-scrs-col cb-font-12 cb-text-complete','cb-scag-mtch-status cb-text-inprogress']}):
#do something with summaries
but this is not working. What is the problem and how do i fix it?