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.3.tar.gz
(7.3 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.3.tar.gz.
File metadata
- Download URL: pmc_xml-1.0.3.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96af1b62c733c7badf3c4e48e0a61af912f7b73d6abb87868a69ef3c8d32ede1
|
|
| MD5 |
666740b0eb4126665cedfa85a2b1597a
|
|
| BLAKE2b-256 |
0a0e831d68598a9f0487db2f339d6f3156775bd2ca1488b8d1abf191d07820f4
|
File details
Details for the file pmc_xml-1.0.3-py3-none-any.whl.
File metadata
- Download URL: pmc_xml-1.0.3-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61d07761b69a48804cef4c573746243e469954a1806bd5271f91dfcb0d1ac14d
|
|
| MD5 |
7194b4d03cf76ebcdffb717326d33538
|
|
| BLAKE2b-256 |
4b79594d145a17ce1f85fe380295b17653244548ae0f196d06b2a03830b3a72a
|