Synthesis of novel magnetic pitch-based hypercrosslinked polymers as adsorbents for effective recovery of Ag+ with high selectivity.