Using a cheese grater or a food processor, grate the potatoes and onion.
Squeeze out all excess water from potatoes and onion and place in a large bowl.
Lightly beat eggs with the salt, pepper, and flour. Add egg mixture to potatoes and mix thoroughly.
In a medium skillet, heat about 1/4 inch vegetable oil over medium-high heat.
Using a 1/3 measuring cup, scoop potato batter and drop onto skillet. Using a spatula, flatten the batter into disks.
Cook, flipping once, until crispy and browned about 8 minutes.
Remove and place on a plate lined in paper towels.
Serve with dill cream cheese and salmon lox.