Use this website to download Gmail as well as any of Google’s portfolio of products – https://takeout.google.com/settings/takeout

You can read more here.