counter=0
for col in soup.find(class_='m-nktq8b'):
if counter==0:
counter+=1
continue
else:
print(col)
print(col['class'])
Above is my input, and below is my output:
<p class="m-1nj5h5j">Severe</p>
['m-1nj5h5j']
How could I further scrape the word between > and <, which is 'Severe'?