Peel and shred the potatoes.
Place the shredded potatoes into a bowl of cold water for five minutes to remove excess starch.
Drain and pat dry with paper towels.
In a large bowl, mix together shredded potatoes, chopped onion, egg, and flour.
Season the mixture with salt and pepper.
Preheat a non-stick skillet over medium-high heat.
Add vegetable oil and heat until it shimmers.
Take a handful of the potato mixture and form it into a patty.
Place it carefully into the hot oil.
Repeat with remaining mixture, leaving some space between each patty.
Cook patties for about 4-5 minutes on each side until golden brown and crispy.
Adjust the heat as necessary to prevent burning.