Using BeautifulSoup, I get a set of data (text) from the site:
text = text.find('div', class_='catalog').text.strip() The output is a list:
Данные 1 Данные 2 Данные 3 We need to frame this list in the tag <p> . To get the output:
<p>Данные 1</p> <p>Данные 2</p> <p>Данные 3</p> Thank!