0
私は既存の質問をしましたが、正確にデータが変換されなかった場所についてはValueErrorの後にヒントはありません。以下のコード。助けてください:python bs4リクエスト:ValueError:未変換のデータが残っています:
str_time = 'Fri, 16 Sep 2016 14:28:14 +0530'
obj_time = datetime.datetime.strptime(str_time[:25],'%a, %d %b %Y %H:%M:%S')
obj_time_rounded = obj_time.replace(hour=0, minute=0, second=0, microseconds =0)
today = datetime.datetime.today()
today_rounded = today.replace(hour=0, minute=0, second=0, microsecond=0)
delta = (today_rounded - obj_time_rounded)
if delta.days == 0:
....
....
error:
File "C:\Users\dell\AppData\Local\Programs\Python\Python35\lib\_strptime.py", line 340, in _strptime
data_string[found.end():])
ValueError: unconverted data remains: