Compare commits
	
		
			2 Commits
		
	
	
		
			7c376a65a1
			...
			7cffb7e37a
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 7cffb7e37a | ||
|  | 0e871cf913 | 
							
								
								
									
										9
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								main.py
									
									
									
									
									
								
							| @@ -30,7 +30,12 @@ def treatSuffixes(prefix): | |||||||
|             print('From file') |             print('From file') | ||||||
|         except: |         except: | ||||||
|             params['qe'] = base |             params['qe'] = base | ||||||
|             text = requests.get(url, params = params).text |             while True: | ||||||
|  |                 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) | ||||||
| @@ -49,6 +54,8 @@ 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) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user