Compare commits
No commits in common. "7cffb7e37a250b76897f1341cc55c454c14af6fd" and "7c376a65a10de8dd76ba12df6e2f444b5dae7a5c" have entirely different histories.
7cffb7e37a
...
7c376a65a1
9
main.py
9
main.py
@ -30,12 +30,7 @@ def treatSuffixes(prefix):
|
||||
print('From file')
|
||||
except:
|
||||
params['qe'] = base
|
||||
while True:
|
||||
try:
|
||||
text = requests.get(url, params = params).text
|
||||
break
|
||||
except requests.exceptions.ConnectionError:
|
||||
continue
|
||||
text = requests.get(url, params = params).text
|
||||
# Pay attention if change `base` elaboration to not allow unwanted folder file writing.
|
||||
with open(baseFilePath, 'w') as requestFile:
|
||||
requestFile.write(text)
|
||||
@ -54,8 +49,6 @@ def treatSuffixes(prefix):
|
||||
entries.add(entry)
|
||||
if not base in entry:
|
||||
interestingEntries = False
|
||||
else:
|
||||
interestingEntries = False
|
||||
if rowsLen == MAXIMUM_SUGGESTIONS and interestingEntries:
|
||||
treatSuffixes(base)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user