Rotational spectroscopy for astrophysical investigations