After crushing 4.5Kg of dried two-headed pointed herbs, the extract was refluxed with 80% ethanol (ethanol/water, the same hereinafter) for 2 times, each time for 3 hours, the extract was combined, and the solvent was recovered under reduced pressure to obtain the ethanol extracted extract of 580g. The extract was suspended in 5L of water, and then extracted with the equal amounts of petroleum ether, ethyl acetate and n-butanol, respectively, and the petroleum ether extract, ethyl acetate extract and n-butanol extract were obtained after recovering the respective portions of the solvent. The petroleum ether extract, ethyl acetate extract and n-butanol extract were obtained after recovering the solvents. The n-butanol extract was eluted with water, 10% ethanol, 30% ethanol, 50% ethanol, 70% ethanol and 95% ethanol in a gradient by AB-8 macroporous resin column, and the 50% and 70% ethanol eluent was dried to dry paste after recovering ethanol under reduced pressure, then analyzed by silica gel column chromatography with chloroform-methanol-water (8:2:1 v/v/v), and then combined into 8 portions for thin-layer chromatography detection, and then analyzed by silica gel column chromatography with chloroform-methanol-water (8:2:1 v/v). The fourth portion was then eluted by silica gel column chromatography, chloroform-methanol-water (7:3:1 v/v), and combined into 4 portions by thin-layer chromatography detection, of which the second portion was obtained by Sephadex LH20 column chromatography (60% methanol-water) to obtain Compound 1 (24mg), and the third portion was obtained by Sephadex LH20 column chromatography (60% methanol-water) to obtain Compound 2 (12mg). Compound 2 i.e. multiplied by psoralenoside 20.