To query one of the following options can be used:
- You can query for a target list directly on the query interface. A more detailed explanation is given here.
- You can use the externally developed package astroquery (https://astroquery.readthedocs.org/en/latest/). Its ALMA component (https://astroquery.readthedocs.org/en/latest/alma/alma.html) allows you to query the ALMA Archive like above but from python. In addition, it also allows you to download the selected data directly from python.
- You can use our TAP VO service (https://almascience.org/tap) or SIAPv2 VO service (https://almascience.org/sia2) to query the ALMA Science Archive with VO tools, including with pyvo.
An example of how to query multiple sources is given here: http://nbviewer.ipython.org/gist/keflavich/e798e10e3bf9a93d1453
Please refer to the ALMA Science Archive Manual for details.