"""
Harvester of pubmed for the SHARE notification service
"""


from __future__ import unicode_literals

from scrapi.base import OAIHarvester


pubmed = OAIHarvester(
    name='pubmed',
    base_url='http://www.pubmedcentral.nih.gov/oai/oai.cgi',
    property_list=['type', 'source', 'publisher', 'format', 'setSpec', 'date'],
)

consume = pubmed.harvest
normalize = pubmed.normalize

"""
Harvester of pubmed for the SHARE notification service
"""


from __future__ import unicode_literals

from scrapi.base import OAIHarvester


pubmed = OAIHarvester(
    name='pubmed',
    base_url='http://www.pubmedcentral.nih.gov/oai/oai.cgi',
    property_list=['type', 'source', 'publisher', 'rights',
                   'format', 'setSpec', 'date', 'identifier'],
)

consume = pubmed.harvest
normalize = pubmed.normalize

add identifier and rights to properties