Get an abstract of article in XML text file from PubMed


* Purpose

Get abstract in XML format using PubMed ID.
論文のpubmed idを用いてAbstractをxml形式で取得する。

NOTE: Maximum limit is 500 XMLs at once.
膨大な件数は一回でダウンロードできず、500件までは一括でダウンロードできることを確認。


* URL

http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=23245335,23197657&rettype=abstract&retmode=xml

----------------------Shell script------------------------------
#!/bin/bash
id="23245335,23197657";
url="http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=${id}&rettype=abstract&retmode=xml";
save="abstract.xml";
wget -O ${save} ${url};
-------------------------------------------------------------------

* Reference

# PubMed Eutils
# http://www.ncbi.nlm.nih.gov/books/NBK25499/
# http://www.ncbi.nlm.nih.gov/books/NBK25500/
# http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=18978792&rettype=abstract&retmode=xml
Share on Google Plus

About Piyoko

    Blogger Comment
    Facebook Comment

0 コメント:

コメントを投稿