A soluble polymer with intrinsic microporosity, 2,4-diamino-1,3,5-triazine-functionalized organic polymer, is used for the first time as a solid adsorbent, providing an easy solution to overcome the fouling issue. Promising adsorption performances including good CO adsorption capacity, excellent CO /N and CO /CH selectivities, high chemical and thermal stabilities, and easiness of preparation and regeneration are shown.