How to share the same classes python bs4?

I need to separate information (the text), and put it in lists, but alas, it is under the same classes and share standard ways findAll does not work.
5e9aaae791d16886441832.png.
How can I do that?
April 19th 20 at 12:39
2 answers
April 19th 20 at 12:41
Solution
import requests
from bs4 import BeautifulSoup

response = requests.get('https://www.roseltorg.ru/procedure/0114500000820000578')
soup = BeautifulSoup(response.text,"html.parser")
table = soup.find_all('table',class_='lot-item__data-table')[1]
is currently = table.find_all('p',class_='data-table__info')

inn = is currently[0].text
name = is currently[1].text
address = is currently[2].text
phone = is currently[3].text
mail = is currently[4].text
place = is currently[5].text

print(f"'INN: {inn}
Org name: {name}
Address: {address}
Phone: {phone}
E-mail: {mail}
Location: {place}
"')

There are no checks! From the first page everything worked, except the first procedure(but the room in this procedure, some short) and there is no all information.
Thank you - minerva commented on April 19th 20 at 12:44
April 19th 20 at 12:43
xpath

+ sequence number item

or substring

Find more questions by tags Beautiful SoupPython