Roll grated potatoes and onion in a tea towel and wring out as much liquid as possible.
Mix the potatoes and onion with the eggs, flour, salt and pepper in a big bowl.
Place 2 Tbsp oil in a large frying pan and heat to medium-high heat.
Once the oil is hot, add ¼ cup scoops of the potato mixture to the frying pan in batches, pressing down with a spatula to flatten.
Cook each side for 2-3 minutes or until golden brown.
Transfer cooked latkes to paper towels to drain the oil and sprinkle with salt. Add additional oil to the frying pan as required to cook the rest of the potatoes.
Pre-heat the oven to 250 degrees
Place latkes on a baking tray and warm for 10 minutes until ready for serving.
Top with a dollop of sour cream (optional).