XML parser for PubMed Central (PMC) Database
Project description
XML parser for PubMed Central (PMC) Database
Installation
python3 -m pip install pmc_xml
Usage
CommandLine
pmc_xml --help
# parse single
pmc_xml PMC6039336
# parse batch
pmc_xml PMC6039336,PMC6031859,PMC6031856
# parse multiple
pmc_xml PMC6039336 PMC6031859 PMC6031856
# save file
pmc_xml PMC6039336,PMC6031859,PMC6031856 -o out.jl
Python
from pmc_xml import PMC_XML_Parser
pmc = PMC_XML_Parser()
for article in pmc.parse('PMC6039336,PMC6031859,PMC6031856'):
print(article) # Article<30003002>
print(article.data) # dict object
print(article.to_json(indent=2)) # json string
print(article.pmid, article.title, article.abstract) # by attribute
print(article['pmid'], article['title'], article['abstract']) # by key
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pmc_xml-1.0.0.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pmc_xml-1.0.0.tar.gz.
File metadata
- Download URL: pmc_xml-1.0.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e61cdef067343b4cd1dbf5281c878c5568718d4b91bf185ee3493b37ef09066a
|
|
| MD5 |
2358351d54ca600638f0c669ee11b4b5
|
|
| BLAKE2b-256 |
94ff334ee61c1c210df719adde861859cebfdb6b4487fce7f74ac4fdd1f3634b
|
File details
Details for the file pmc_xml-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pmc_xml-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef4a42e04b625e9d5246448719dddb846b26bbca1707b65a9d81047bd3fa4333
|
|
| MD5 |
5402e758afb6a562da565bb6a26b48ad
|
|
| BLAKE2b-256 |
7b4dcb0c1676cb375a234d325ac8005d79633d007100b623500c1c66a9bcf7da
|