Synthesis of a terpolymer containing fluorene, side chain conjugated thiophene and benzothiadiazole and its applications in photovoltaic devices