Skip to content

Commit

Permalink
Merge pull request #2 from kmaehashi/fix-sleep-time
Browse files Browse the repository at this point in the history
fix default sleep duration to 10 seconds
  • Loading branch information
kmaehashi committed May 4, 2018
2 parents 7276066 + a62c85c commit b532631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion atwiki/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AtWikiAPI(object):
def __init__(self, uri, **kwargs):
self._uri = uri
self._user_agent = kwargs.get('user_agent', 'Mozilla/5.0 (AtWikiPython)')
self._sleep = kwargs.get('sleep', 1)
self._sleep = kwargs.get('sleep', 10)

def get_list(self, tag=None):
index = 0
Expand Down
2 changes: 1 addition & 1 deletion atwiki/tools/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def start(cls, args):
page_src = api.get_source(page_id)
with open(path, 'w') as f:
f.write(page_src)
time.sleep(1)
time.sleep(10)

path = '{0}/meta.json'.format(output_dir)
print('dumping: meta data to {0}'.format(path))
Expand Down

0 comments on commit b532631

Please sign in to comment.