Best VPN Service (English Banners)

GeekBuying.com

Beautiful Soup Cheatsheet

Alibaba Cloud
Autonomous Standing Desk

System Mechanic® Ultimate Defense™
Save up to 50% on ANSI Standards Packages

Accessing Data in Elements

  • get_text – access the inner text in an element
  • name – tag name
  • attrs – dictionary of attributes
  • You can also access attribute values using brackets!

Navigating with Beautiful Soup

Via Tags

  • parent / parents
  • contents
  • next_sibling / next_siblings
  • previous_sibling / previous_siblings

Via Searching

IK Multimedia's T-RackS 5
  • find_parent / find_parents
  • find_next_sibling / find_next_siblings
  • find_previous_sibling / find_previous_siblings
nordvpn