For simple scratches, you will find scratch-removing sprays on market. You can use sprays easily on floor to remove scratches.
You can use also Oils and finishes can repair small scratches on the wood floors. If the scratch on wood floors has a slight texture you should use wood patching.
If your floors have deeper scratches then its require wood fillers and repairing chemicals. Wood fillers for fill the deeper scratches and then you need to use some chemicals to repairing Scratches from Wood Floors.
If you want to do it the easy way to Repairing Scratches from Wood Floors, you can just throw a carpet over the scratch. Nobody will ever know where is scratches or its deeper or small on your Wood Floors.