A novel pyridine based polymer (PAPY) bearing typical bis(2-pyridylmethyl)amine and additional amino groups was newly prepared with much lower cost (46.5 USD/kg) than commercial resins with bis(2-pyridylmethyl)amine functional groups such as M4195 and TP220 (134.6 USD/kg). PAPY is a weakly basic resin with polymethacrylate–divinylbenzene matrix. Due to the relatively more hydrophilic matrix and more modified functional groups, PAPY owned the highest selectivity for nickel from high-concentration cobalt solutions even under highly acidic condition (pH ∼ 2). The highest separation factor of 129.2 (C0, Ni/C0, Co = 1:5000) could be achieved for Ni(II) versus Co(II) with PAPY, which is 100.1%, 53.6% more than those with M4195 and TP220, respectively. Because of the stronger deprotonation ability and the higher chelation binding energy, Ni(II) could form the more stable structure of two five-member rings in solid phase than Co(II). This may be the predominant mechanisms for the highly efficient separation between Ni(II) and Co(II). More attractively, Co(II) could speed up the initial adsorption rate of Ni(II) by 16.30% due to the affinity of functional groups and the electrostatic repulsion of Co(II). Far more high-purity cobalt (>99.99%) could be obtained by PAPY in the dynamic tests. With good regeneration and reusability, PAPY possesses great potential in the green and economical preparation of high-purity cobalt.