The invention discloses an automatic pipeline cleaner and an application method thereof. The automatic pipeline cleaner comprises clamp mechanisms, a telescoping mechanism and a cleaning mechanism. The upper clamp mechanism and the lower clamp mechanism are mounted at two ends of the telescoping mechanism. The cleaning mechanism is mounted on the clamp mechanisms. The automatic pipeline cleaner specifically comprises a left claw, a right claw, a fixed support, a connecting rod, a drive rod, a clamp motor, a telescoping motor, a first telescoping rod, a second telescoping rod, a screw rod, a pushing plate, a worm gear, a worm, a transmission shaft, a cleaning nozzle and a rubber tube. The clamp mechanism and the telescoping mechanism can climb along a rod while the cleaning mechanism continuously sprays detergent for cleaning. The automatic pipeline cleaner is simple to use, low in technical requirements for workers, high in production efficiency, simple to machine, low in cost, suitable for cleaning of infrastructures such as street lamps, telegraph poles, advertizing board supports and petroleum pipelines, and capable of completing climbing and cleaning.