Skip to content

Commit

Permalink
add user-agent headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmiguez committed Jun 28, 2024
1 parent d147479 commit 3e98221
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manatus/cli/harvest.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def harvest(org_harvest_info, org_key, write_path, verbosity):
encoding='utf-8') as fp:

# Sickle harvester
harvester = sickle.Sickle(oai, iterator=OAIItemIterator, encoding='utf-8')
harvester = sickle.Sickle(oai, iterator=OAIItemIterator, encoding='utf-8', headers={"User-Agent": "manatus-ssdn/1.0"}) # todo: make this dynamic some day
harvester.class_mapping['ListRecords'] = SickleRecord
logger.debug(f'Sickle harvester options: {harvester.__dict__}')

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='manatus',
version='1.0.11',
version='1.0.12',
packages=find_packages(),
url='http://github.com/SunshineStateDigitalNetwork/manatus',
license='MIT',
Expand Down
2 changes: 1 addition & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

# The full version, including alpha/beta/rc tags
# release = __version__
release = '1.0.11'
release = '1.0.12'

# -- General configuration ---------------------------------------------------

Expand Down

0 comments on commit 3e98221

Please sign in to comment.