valouas commited on
Commit
15b647f
·
verified ·
1 Parent(s): 074ccb1

Upload bot_concours_sans_api.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. bot_concours_sans_api.py +4 -4
bot_concours_sans_api.py CHANGED
@@ -95,12 +95,12 @@ USER_AGENTS = [
95
  'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
96
  ]
97
 
98
- # Logging setup
99
  logging.basicConfig(
100
  level=logging.INFO,
101
  format='%(asctime)s - %(levelname)s - %(message)s',
102
  handlers=[
103
- logging.FileHandler('concours_bot_sans_api.log'),
104
  logging.StreamHandler()
105
  ]
106
  )
@@ -1032,9 +1032,9 @@ class ContestBotOrchestrator:
1032
  participation_count += 1
1033
 
1034
  if success:
1035
- logging.info(f" Successfully participated in: {contest.title}")
1036
  else:
1037
- logging.warning(f" Failed to participate in: {contest.title}")
1038
 
1039
  # Pause plus longue après succès
1040
  if success:
 
95
  'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
96
  ]
97
 
98
+ # Logging setup avec encodage UTF-8 pour Windows
99
  logging.basicConfig(
100
  level=logging.INFO,
101
  format='%(asctime)s - %(levelname)s - %(message)s',
102
  handlers=[
103
+ logging.FileHandler('concours_bot_sans_api.log', encoding='utf-8'),
104
  logging.StreamHandler()
105
  ]
106
  )
 
1032
  participation_count += 1
1033
 
1034
  if success:
1035
+ logging.info(f"SUCCESS: Successfully participated in: {contest.title}")
1036
  else:
1037
+ logging.warning(f"FAILED: Failed to participate in: {contest.title}")
1038
 
1039
  # Pause plus longue après succès
1040
  if success: