In this paper we give some applications of weakly holomorphic forms and their cycle integrals to rational period functions for the modular group. In particular, we give a simple construction of the associated modular integrals that works for all weights