Dear genomax,
I really appreciate your great help! In fact, the script worked fine on my computer, but when I got the data from 169,159 biosamples, I got the following messages:
(1st time) 500 Can't connect to eutils.be-md.ncbi.nlm.nih.gov:443 (Operation timed out) No do_post output returned from 'https://eutils.be-md.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=biosample&query_key=.......
(2nd time) 502 Bad Gateway
I think either my computer caused an error or NCBI stopped my download, but normally we can get all the data, right?
Best regards
While it may be possible it is likely not practical for all IDs. You may want to check biosample file NCBI makes available here (large file!) to see if you can pare down to a smaller set of ID's and then use answer from the thread you linked above.
Dear genomax,
Thank you for your quick comment ! It turns out that it is a big size and the extraction is not realistic. Sorry to bother you again, but do you know how to get all BioSample isolation sources of the environmental metagenomes? I still don't know how to specify db and can't get any data. If possible, I would appreciate it if you could give me an example of script. I am sorry that I am not familiar with Linux-based analysis.
Best regards
Using EntrezDirect. Following is a vague start, it would be challenging to deal with a query like "metagenome" since there are
1537782hits as of today.