Peel and grate the potatoes using a box grater or food processor. Squeeze out excess moisture with a clean kitchen towel.
In a large bowl, mix the grated potatoes, grated onion, eggs, flour, salt, and pepper until combined into a thick batter.
Heat vegetable oil in a frying pan over medium-high heat.
Spoon dollops of the potato mixture into the hot oil, flattening slightly with a spatula. Fry each side for about 3-4 minutes until golden brown and crispy.
Remove from the pan and place on paper towels to drain excess oil.
Serve warm with sour cream or applesauce.