The utility model discloses an oil pipeline cleaner based on the
magnetoelectric effect and a pipeline. The pipeline cleaner comprises a shell, and a control device is arranged in the shell; the circumference of the detection device is arranged on the inner wall of the shell and is in
signal connection with the control device; the cleaning device is of a spherical structure and is matched with the detection device, a plurality of rectangular
pyramid convex nails are arranged on the outer wall of the cleaning device, and a magnetic unit is arranged in the cleaning device and is used for generating a
magnetic signal source. When the
pipe cleaner is blocked by oil
dirt which is difficult to clean or passes through a
dirt accumulation area, parameters such as intensity and frequency of magnetic signals can be correspondingly changed due to change of the environment in a pipeline, the detection device can accurately capture the change of the magnetic signals in real time, the control device analyzes and processes the detected signals, and the detection result is displayed. The specific position of blockage can be accurately judged, the continuity of
petroleum conveying is guaranteed, and a large amount of cost is saved for enterprises.