NOVELTY - Preparation of dye-sensitized solar cell comprises spraying semiconductor paste on conductive substrate to form porous light anode film by heat treatment; providing dye on semiconductor thin-film by spraying or dipping method to prepare light anode; preparing counter electrode, which includes counter electrode substrate, conductive film, and catalyst layer; filling electrolyte between light anode provided with dye and counter electrode by spraying or filling method; and sealing the prepared light anode, counter electrode, and electrolyte with sealing glue or polymer film.    USE - Method of preparing dye-sensitized solar cell.    ADVANTAGE - The method avoids the use of large-scale expensive instrument; and is simple and easy for industrial production, thus reducing the cost of solar cell and obtaining solar cell with high efficiency.    DETAILED DESCRIPTION - Preparation of dye-sensitized solar cell comprising light anode, counter electrode, and electrolyte between the two electrodes using total spraying method, comprises:    (A) preparing light anode, which includes substrate, conductive film, semiconductor thin-film, and dye; spraying a semiconductor paste on conductive substrate to form porous light anode film by heat treatment, where conductive substrate is metal thin plate, conductive glass, or flexible conductive polymer thin-film, and spraying semiconductor paste comprises high-low voltage static spraying, high-low pressure spraying, vacuum plasma spraying, atmosphere plasma spraying, electro-arc spraying, thermal spraying, flame powder spraying, low-voltage and high-flow spraying, low-voltage and low-flow spraying, mixed air spraying, non-air spraying, or powder static spraying; and providing dye on semiconductor thin-film by spraying method or dipping method to prepare light anode, where dye is dye compound, natural dye, metal complex, or pure organic compound;    (B) preparing counter electrode, which includes counter electrode substrate, conductive film, and catalyst layer, where counter electrode substrate is glass, metal, or flexible polymer thin-film, the conductive film carried by the conductive substrate is tin oxide, indium-tin oxide, fluorine-doped indium-tin oxide, graphite, carbon nanotube, or other conductive materials, and the catalyst layer is metal or nonmetal;    (C) filling electrolyte between the light anode provided with dye and counter electrode by the spraying method or filling method, where electrolyte comprises an oxidizing compound and electrolyte liquid, which is an organic solvent, ion-type liquid, soluble salt, semi-soluble salt, or solid electrolyte, and the oxidizing and reducing agent included in electrolyte liquid comprises iodine, iodide, bromide, or iodine and bromine salt of quat. ammonium compound; and    (D) sealing the prepared light anode, counter electrode, and electrolyte with sealing glue or polymer film; and leading out the leads at the two electrode to obtain dye-sensitized solar cell.