The owner or occupant of lands in any city may distrain any of such animals or fowls doing damage on such lands, and thereupon such proceedings as to these animals or fowls and the disposition thereof and the damage done thereby as are or shall be provided by the general laws of this state relating to the distraining by the owner or occupant of lands, of any beast doing damage thereon, the disposition of the beast distrained, and the appraisal of the damages, and the collection thereof.