An excrement collector comprises an upper cover (100), a collecting tube (300), a bottom cover (400) and a filtering tube (200), wherein the filtering tube (200) is fixed on the upper side inside the tube cavity of the collecting tube (300) a sampling end (103) is formed on the lower part of the upper cover (100) and passes through a through hole (203) at the bottom of the filtering tube (200) the upper cover (100) is detachably integrated with the upper part of the collecting tube (300) the bottom cover (400) is detachably integrated with the lower part of the collecting tube (300) and liquid is provided in the cavity between the collecting tube (300) and the filtering tube (200).