Prepare the Potatoes: Peel and grate the potatoes using a grater or a food processor with a grating attachment. If using onions, grate the onion as well.
Remove Excess Moisture: Place the grated potatoes (and onion, if using) in a clean kitchen towel or cheesecloth. Twist and squeeze tightly to remove as much liquid as possible. This step is crucial for achieving crispy pancakes.
Mix Ingredients: In a large mixing bowl, combine the grated potatoes, grated onion (if using), beaten eggs, flour, salt, and pepper. Mix until well combined.
Heat the Oil: In a large skillet, heat about 1/4 inch of vegetable oil over medium-high heat until shimmering but not smoking.
Form and Fry the Pancakes: Using a spoon or your hands, drop small mounds of the potato mixture into the hot oil, flattening each mound slightly with a spatula to form pancakes. Fry in batches, being careful not to overcrowd the skillet.
Cook Until Golden Brown: Cook each pancake for 3-4 minutes on each side, or until golden brown and crispy. Adjust the heat as needed to prevent burning.
Drain and Serve: Transfer the cooked pancakes to a plate lined with paper towels to drain excess oil. Serve warm with a dollop of applesauce or sour cream.