Posted on:

03 Dec 2022

0

small modification on code

# This paragraph has many nested elements, with lots of different fragments of text
p = soup.find_all('p')[2]
p
as now  p = soup.find_all('p')[1] also returns an empty paragraph

0 answers ( 0 marked as helpful)

Submit an answer