Merge pull request #346 from nemobis/bug/334

Use GET rather than POST for allpages API query
pull/331/merge
nemobis 4 years ago committed by GitHub
commit 128e23c3a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -271,7 +271,7 @@ def getPageTitlesAPI(config={}, session=None):
retryCount = 0
while retryCount < config["retries"]:
try:
r = session.post(url=config['api'], data=params, timeout=30)
r = session.get(url=config['api'], params=params, timeout=30)
break
except ConnectionError as err:
print "Connection error: %s" % (str(err),)

Loading…
Cancel
Save