Compare commits

..

No commits in common. "7cffb7e37a250b76897f1341cc55c454c14af6fd" and "7c376a65a10de8dd76ba12df6e2f444b5dae7a5c" have entirely different histories.

View File

@ -30,12 +30,7 @@ def treatSuffixes(prefix):
print('From file') print('From file')
except: except:
params['qe'] = base params['qe'] = base
while True: text = requests.get(url, params = params).text
try:
text = requests.get(url, params = params).text
break
except requests.exceptions.ConnectionError:
continue
# Pay attention if change `base` elaboration to not allow unwanted folder file writing. # Pay attention if change `base` elaboration to not allow unwanted folder file writing.
with open(baseFilePath, 'w') as requestFile: with open(baseFilePath, 'w') as requestFile:
requestFile.write(text) requestFile.write(text)
@ -54,8 +49,6 @@ def treatSuffixes(prefix):
entries.add(entry) entries.add(entry)
if not base in entry: if not base in entry:
interestingEntries = False interestingEntries = False
else:
interestingEntries = False
if rowsLen == MAXIMUM_SUGGESTIONS and interestingEntries: if rowsLen == MAXIMUM_SUGGESTIONS and interestingEntries:
treatSuffixes(base) treatSuffixes(base)