Fantaso / whatsapp-web

Simon is a Python library that helps made easy the browser automation for WhatsApp Web service
Other
93 stars 29 forks source link

Problem with the time format #2

Open rznamd opened 4 years ago

rznamd commented 4 years ago

Traceback (most recent call last): File "C:\Users\Razin\Documents\Python Scripts\Python_Venv\temp\webdriver_prac.py", line 55, in print(msg.date) File "C:\Users\Razin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\simon\chat\elements.py", line 38, in date return self.get_cleaned_datetime() File "C:\Users\Razin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\simon\chat\elements.py", line 60, in get_cleaned_datetime return datetime.datetime.strptime(datetime_str, "[%H:%M, %m/%d/%Y]") File "C:\Users\Razin\AppData\Local\Programs\Python\Python38-32\lib_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "C:\Users\Razin\AppData\Local\Programs\Python\Python38-32\lib_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data '[6:35 am, 10/08/2020] Shanjabi' does not match format '[%H:%M, %m/%d/%Y]'