def download_file(service, drive_file):
    """Download a file's content.
    Args:
    service: Drive API service instance.
    drive_file: Drive File instance.
    Returns:
    File's content if successful, None otherwise.
    """
download_url = drive_file.get('downloadUrl')
if download_url:
    resp, content = service._http.request(download_url)
if resp.status == 200:
    print('Status: %s' % resp)
return content
Howto download file from Drive API using Python script