In case anyone wants to detect the selectors automatically, here's a small python library I wrote that does it for you: https://github.com/lorey/mlscraper
A good idea and very cleanly implemented.
I imagine that there's a ton of other possible applications that don't require much modification to the code.
Thanks for sharing!