Format Text Extracted From Html
I am getting the text from this HTML with one line: My code is: title = amazon.find_elemen
Solution 1:
You can replace the new line character with space as below :
title = amazon.find_element_by_css_selector('div > div > label').get_attribute('innerText').replace("\n", " ")
Post a Comment for "Format Text Extracted From Html"