Skip to content

Interface (anchor.ui)

The local program's interface: a server on this computer only, and the app it serves. It lists, creates, edits, deletes and runs the saved automations (with the values they need, or once per row of a CSV or Excel spreadsheet), runs a one-off request or only shows its plan, and saves a request that was done and checked as an automation. Runs go one at a time, in a queue (Runs), and their questions (a sensitive action, which element, a login) are answered in the interface, where the browser is shown live and a login is done on it; the person can also say a candidate is none of the ones found (and why) or that a login comes first. Each automation's page looks after its fixes (with undo), notes, decisions and remembered choices; Settings keeps the language (Portuguese or English, starting in the computer's), the saved logins and the choices remembered from requests. A run's result shows what it brought back (answers, tables and lists, downloaded files, and a screenshot of the page at the end when the form or the request's words ask for one). Schedules runs proven automations by themselves at set times, while the interface is open (see the README). From the code, build the app once and start the server by hand:

cd web && npm install && npm run build && cd ..
python -m anchor.ui

It opens the browser on http://127.0.0.1:<port>/. Options: --automations <folder> (default automations), --port <n> (default: a free one), --no-browser. Every request to its API must carry the code made at this start, which the app receives in the address it opens; no other program or website on the computer can use it.