For the HCP 500 Release, unprocessed and processed data for a subject can be accessed via REST calls.
In order to access data for a subject, you will need to register at https://db.humanconnectome.org
To get data via REST, in a script, you could use tools like curl.
---- selected data from Functional processing
---- selected data from FIX processing
---- selected data from TASKAnalysis S* processing
---- selected data from Structural processing
------- selected data from Structural processing
------- selected data from Diffusion processing
--------all scan types unproc folders
To download a particular file, say T1wthe for a subject, say 100307, you could invoke curl as:
curl -u DB_LOGIN_ID_HERE:DB_PASSWORD_HERE -X GET