Peel potatoes and onions.
Grind potatoes and onions in a food processor. Put in a colander and squeeze out excess fluid.
Add the egg, flour, salt and pepper to the potatoes. Mix well.
Form balls from the resulting test. Put in preheated vegetable oil and squeeze a little spatula.
Fry on both sides until golden brown.