In gas adsorption and metal recovery, inexpensive and covalently bonded porous polymers offer industrial feasibility, despite the challenge of having reactive functionalities while maintaining porosity. Herein, three highly porous covalent organic polymers (COPs), COP-210, COP-211, and COP-212, with porphyrin functionalities that are readily synthesized by a Friedel–Crafts reaction using chlorinated solvents as linkers are reported. The polymers exhibit competitive adsorption capacities for CO2, H2, and CH4. Their porphyrin sites proved particularly effective in precious metal recovery, where COPs exhibit high selectivity toward gold, platinum, palladium, and silver. Analysis reveals that reductive metal capture is prevalent for gold and silver. Platinum is also captured through a combination of reduction and chelation. The gold adsorption capacities are 0.901–1.250 g g−1 with fast adsorption kinetics at low pH. COP-212 selectively recovers 95.6% of gold from actual electronic waste (e-waste) collected from junkyards. The results show that the inexpensive and scalable porous porphyrin polymers offer great potential in gas capture, separation, and precious metal recovery.