I've been trying to find the table from this website: https://consultas.anvisa.gov.br/#/medicamentos/25351532892201972/
I'm using this method below:
from bs4 import BeautifulSoup
import requests
url= "https://consultas.anvisa.gov.br/#/medicamentos/25351532892201972/"
page = requests.get(url, verify=False)
soup = BeautifulSoup(page.content, 'html.parser')
print(soup.prettify())
for table in soup.find_all('table'):
print(table)
for subtable in table.find_all('table'):
print(subtable)
It results in nothing, because somehow the table seems to be hidden. I can see the tags and the table using the firefox inspector (image below), but BeautifulSoup can't find it with the methods I've been trying so far.
What could I do to find these kinds of hidden nested tables? I already tried many ways to find it with soup.find(), soup.find_all(), soup.body.div.table.find_all(), but no success yet.
Thank you guys in advance! =)

https://consultas.anvisa.gov.br/api/consulta/medicamento/produtos/25351532892201972