Home > other >  Python USES BeautifulSoup extract specific text
Python USES BeautifulSoup extract specific text

Time:09-29

How to extract the text of "driving after... The brakes, "

After driving understand a truth: you can run across the street in the past, not because you run fast, but the car is braked,





CodePudding user response:

Soup=BeautifulSoup (page, "LXML")
The content=soup. The find (" div ", class_="useful - the summary"). The text

Try this one

CodePudding user response:

To extract the first element
The contents [0]
  • Related