The invention relates to an urban gas pipe robot adapting to pipe shape change. The urban gas pipe robot mainly consists of a power leather bowl, a spring coupling, a frame, tension springs, slide blocks, support connecting rods, driven wheels, support arms, a mileage wheel, a steering engine system, a gear set, an extension system, an extension rod, a guide wheel frame, a rotating shaft, an extension spring, a guide wheel base, a guide wheel, a control system, a battery set, a motor, a steering engine control panel, a potentiometer and a motor gear set. The power leather bowl is connected with the spring coupling; the spring coupling is connected with the frame; the tension springs and the slide blocks are connected with the frame; the support connecting rods are connected with the support arms; the steering engine control panel is mounted in the steering engine system; the motor is connected with the potentiometer through the motor gear set; the steering engine system is connected with the extension rod through the gear set; the guide wheel base is fixed with the rotating shaft; and the battery set and the control system are mounted in the frame. The urban gas pipe robot is simple in structure, safe and reliable, and can be reliably operated in an urban gas pipe with a complex structure.