Peel and grate the potatoes into a bowl.
Squeeze out excess moisture using a clean cloth or paper towel.
In a mixing bowl, combine grated potatoes and chopped onion.
Add egg, flour, salt, and pepper; mix until well combined.
Heat oil in a skillet over medium heat.
Drop portions of the mixture into the hot oil, flatten slightly.
Fry for about 3-4 minutes on each side until golden brown.
Remove from skillet and drain on paper towels.