Why   replace as A in excel while scrape data from website in python , I am trying to solve it with .replace(' ',"") but still not working
Question:
Answers:
Try to use .get_text()
method instead of .text
property
Category = soup.find('a', class_='article-labels__text b-reith-sans-font').get_text(strip=True)
Try to use .get_text()
method instead of .text
property
Category = soup.find('a', class_='article-labels__text b-reith-sans-font').get_text(strip=True)