Astroquery allows users to access online astronomical data from a wide range of sources; it is an Astropy-affiliated package. Each web service has its own sub-package for interfacing with a particular data source.
https://ui.adsabs.harvard.edu/abs/2019AJ....157...98G