The invention discloses an oil pumping unit. The oil pumping unit comprises a base, a screw and a connecting rod. A seat is arranged on the upper part of the base, a universal ring is arranged at thebottom of the seat, and a ring groove is formed in the top of the base. The universal ring is arranged in the ring groove, a connecting piece is rotatably arranged on the upper surface of the base, the top of the connecting piece is rotatably connected with a stud, the upper end of the stud is in threaded connection with the lower end of a rotating screw sleeve, the upper end of the rotating screwsleeve is rotatably connected to the lower surface of the seat, the lower end of the screw penetrates the seat and is attached to the upper surface of the base, a bracket is arranged at the upper left of the seat, and an opening is formed in the middle of the bracket. The pumping unit is provided with a sliding rod, a sliding groove and a compression spring. When a walking beam rotates, the sliding rod on one side of the rotation direction of the walking beam slides into the sliding groove, at the same time, the compression spring is extruded, and the compression spring absorbs kinetic energyand reduces the inertial load during rotation of the walking beam; and until the walking beam rotates in the reverse direction, the compression spring releases the kinetic energy, and the effects ofreducing the damage to the capacity and reducing the pressure of the inertial load on a gear are achieved.