soupsieve

A modern CSS selector implementation for Beautiful Soup.

Here are some articles that you may find helpful