Hacker News new | ask | show | jobs
by WalterGR 2151 days ago
Is there a name for the concept of automatically generating (potentially with machine learning?) selectors?

I feel like I’ve seen similar projects come across HN, but I’m at a loss for what to search for.

2 comments

It's not that easy to reuse those because projects often differ in what they need (do you really want unique selectors for one single element?). But there are a couple of CSS selector generators, maybe you are referring to something like https://github.com/fczbkk/css-selector-generator or https://github.com/antonmedv/finder?
I made a greasemonkey script for this purpose. Create XPath, CSS or pattern matching. Unfortunately it stopped working when Firefox got its new API. But here is a video of it: https://youtu.be/PUrBJ6wOXvE?t=50
A very structured and guided approach/interface you built there. I can see why it does not work anymore with the new extension API, it's a complete interface. Nice work!
"wrapper induction" is one term that gets used.