WRDS (https://wrds-www.wharton.upenn.edu) is often used by researchers via the web interface. Doing so is slow and poorly suited to automation.
This project collects examples of how to query WRDS, mainly using somewhat advanced PostgreSQL techniques, in ways that are efficient and automatable.