how to scrape dynamic content in beautiful soup or any other library for tags <use xlink:href="#icon-verified"></use> and <span data-test="answer-box-thanks-value">21</span>
Unable to access these using beautiful soup
# <span data-test="answer-box-thanks-value">19</span>
r=requests.get('https://brainly.co.id/tugas/148')
r=r.text
# print("Terima kasih" in r)
bsoup=BeautifulSoup(r,'html.parser')
for span in bsoup.find_all('span',{"data-test":"answer-box-thanks-value"}):
print(span)
Aucun commentaire:
Enregistrer un commentaire