How to generate XPath and CSS selectors for any website.
finic generate-selectors
to use a LLM to predict selectors for elements you pick out.help
or h
command will list all available commands.
add
or a
to queue it up for generation. list
or l
will list all queued elements.
The browser will open in inspect mode, which prevents interacting with the website. Enter mode
or m
to toggle inspect mode on and off so you can navigate the website.
generate
or g
will start generating selectors for the elements you’ve queued. To minimize token usage, we send HTML for only the 2 closest siblings of the target element, the parent element, and the grandparent element.
In our testing this ends up being less than 5000 tokens in most cases.
Selectors will be saved to selectors.json
in the current directory.
selector_id
will overwrite existing registered selectors.
selectors.json
with FSS in a future update.