In Wizard101, the Rain Beetle pet is obtained by defeating the Harvest Lord, who serves as its source in the game.
Be warned that many players consider this a tough battle, so come prepared with a strong team, good gear, and plenty of snacks before you challenge him. Persistence and preparation are your best friends here.