Project PRJEB99111 has 147 samples. I want to download the metadata (age, sex, disease status, etc) of each sample, not fastq. The only way I can download the metadata is by downloading the xml file of each sample accession one by one - is there a way to bulk download all 147 metadata files? I can work with xml files if I have to.  

You can view the metadata for a specific sample accession by clicking on the"attributes" tab. Here is an example for one sample:  [https://www.ebi.ac.uk/ena/data/view/SAMEA104228123][1] 


  [1]: https://www.ebi.ac.uk/ena/data/view/SAMEA104228123
with the following xslt stylesheet:

https://gist.github.com/lindenb/04ed876dc6581f33f19682968ae37bb5

    $ wget -q  -O - "https://www.ebi.ac.uk/ena/data/warehouse/filereport?accession=PRJEB99111&result=read_run&fields=study_accession,sample_accession,secondary_sample_accession,experiment_accession,run_accession,tax_id,scientific_name,instrument_model,library_layout,fastq_ftp,fastq_galaxy,submitted_ftp,submitted_galaxy,sra_ftp,sra_galaxy,cram_index_ftp,cram_index_galaxy&download=txt" | grep -v sample_accession | cut -f 3 | awk '{printf("https://www.ebi.ac.uk/ena/data/view/%s&display=xml\n",$0);}' | while read U; do wget -O - -q "$U" | xsltproc transform.xsl - ; done
    
    
    ERS1887136|age|61
    ERS1887136|age_units|years
    ERS1887136|body_habitat|UBERON:feces
    ERS1887136|body_product|UBERON:feces
    ERS1887136|body_site|UBERON:feces
    ERS1887136|collection_site|UCSF
    ERS1887136|collection_timestamp|2013-10-08
    ERS1887136|day_in_timeseries|Missing: Not provided
    ERS1887136|disease_course|RRMS
    ERS1887136|disease_state|MS
    ERS1887136|dna_extracted|TRUE
    ERS1887136|elevation|124
    ERS1887136|env_biome|urban biome
    ERS1887136|env_feature|human-associated habitat
    ERS1887136|env_material|feces
    ERS1887136|env_package|human-gut
    ERS1887136|flare|No
    ERS1887136|geo_loc_name|USA:CA:San Francisco
    ERS1887136|height|Missing: Not provided
    ERS1887136|height_units|Missing: Not provided
    ERS1887136|host_common_name|human
    ERS1887136|host scientific name|Homo sapiens
    ERS1887136|host_subject_id|34
    ERS1887136|host_taxid|9606
    ERS1887136|household|H1004
    ERS1887136|investigation_type|mimarks-survey
    ERS1887136|latitude|37.76
    ERS1887136|life_stage|adult
    ERS1887136|longitude|-122.46
    ERS1887136|physical_specimen_location|UCSF
    ERS1887136|physical_specimen_remaining|FALSE
    ERS1887136|repeated_sequencing|1
    ERS1887136|sample_type|stool
    ERS1887136|sequencing_set|2
    ERS1887136|sex|female
    ERS1887136|sinai_unmarked_rep|Missing: Not provided
    ERS1887136|submission_number|1
    (...)

