A molecularly imprinted triazine-based conjugated microporous polymer composite with rich porosity and good selectivity was prepared and used as the adsorbent of solid-phase extraction (SPE). The composite-based SPE for the three phenolic endocrine disrupting chemicals (nonylphenol, octylphenol and bisphenol A) in different beverages followed by derivatization with heptafluorobutyric anhydride and then detection by gas chromatography-electron capture detector was developed. The variables mainly affecting the extraction and derivatization were evaluated. Under the optimal conditions, the limits of detection (S/N = 3) of the established method for the analytes ranged from 0.12 to 1.20 µg L−1. The linear response range of the method was 0.40–50.0 µg L−1, with the coefficients of determination falling in the range of 0.9906–0.9994. The relative recoveries of the phenolic endocrine disrupting chemicals in spiked beverage samples at three concentration levels (high, middle, and low) were in the range of 80.6% −117% with the relative standard deviations of 3.5%-11%. The established method exhibits a potential in the monitoring of trace phenolic endocrine disrupting chemicals in real beverage samples.