I have been working on a similar project, Check this script out. It is working to automatically get the correct selectors at least for simple sites.
Github /rushout09/automator/blob/main/main.py
The site didn’t allow me to add links so had to add in this way.