I want to select all anchor tags that do not contain mailto: in their href property.
Up until version 4.7.0 of BeautifulSoup, I was able to use this code:
links = soup.select("a[href^=mailto:]")
Version 4.7.0 of BeautifulSoup replaced their CSS selector implementation with SoupSieve, which is supposed to be more modern and complete.
Unfortunately, the above code now throws this error:
soupsieve.util.SelectorSyntaxError: Malformed attribute selector
What is the drop-in replacement for that code? What is the proper way to target those same elements?