Skip to content

Instantly share code, notes, and snippets.

@pimiento
Created January 23, 2023 12:47
Show Gist options
  • Save pimiento/7d15dcbba759ffef00692aaf817b5cf9 to your computer and use it in GitHub Desktop.
Save pimiento/7d15dcbba759ffef00692aaf817b5cf9 to your computer and use it in GitHub Desktop.
In [98]: for dt in soup.find_all("dt"):
...: print(dt.find(text=re.compile(r"Status")))
None
Status
None
None
None
None
None
None
None
None
In [99]: print(soup.find("dt", string="Status"))
None
In [100]: print(soup.find_all("dt")[1])
<dt class="field-even">Status<span class="colon">:</span></dt>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment