https://github.com/twz915/pubmed
Get literature information via PubMed ID, such as the author, title, journal_name, pub_date and so on.
https://github.com/twz915/pubmed
journal literature pubmed reference
Last synced: 6 months ago
JSON representation
Get literature information via PubMed ID, such as the author, title, journal_name, pub_date and so on.
- Host: GitHub
- URL: https://github.com/twz915/pubmed
- Owner: twz915
- License: mit
- Created: 2015-01-15T08:40:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-09-11T02:53:10.000Z (about 9 years ago)
- Last Synced: 2025-04-23T21:44:10.183Z (6 months ago)
- Topics: journal, literature, pubmed, reference
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 17
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
`pubmed` is used to:
1. Get literature information via PubMed ID, such as the author, title, journal_name, pub_date and so on.
2. Read csv file downloaded from pubmed search page.

## Install
pip install pubmed
## Usage
### Query Online
```python
from pubmed import PubMed
# http://www.ncbi.nlm.nih.gov/pubmed/26471457
pm = PubMed(26471457)
print pm.title
print pm.authors
print pm.pub_date
print pm.journal_name
print pm.journal_full_name
or
print pm.get_title()
print pm.get_authors()
print pm.get_pub_date()
print pm.get_journal_name()
print pm.get_journal_full_name()
or
print pm.getTitle()
print pm.getAuthors()
print pm.getPubDate()
print pm.getJournalName()
print pm.getJournalFullName()
```
### Read Download File
read csv files download from pubmed
```python
from pubmed import OpenCsv
f = OpenCsv('./pubmed_result.csv')
for p in f:
print(p.title)
print(p.authors)
print(p.PMID)
```
demo
```
>>> pm = PubMed(26471457)
>>> pm.authors
['Tu W', 'Zhang H', 'Liu J', 'Hu QN']
>>> pm.title
'BioSynther: a customized biosynthetic potential explorer.'
>>> pm.pub_date
'2016 Feb 1'
>>>
```