python bs4 requests: ValueError: unconverted data remains:
<p>i did go through the existing questions, but for my code there is no hint given after the <strong>ValueError</strong> as to where exactly the data remained unconverted. code below. please help:</p>

<pre><code>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:
</code></pre>

<p>What do you mean no hint?:</p>

<p>It is in line 340</p>

<p>this is the same problem:</p>

<p><a href="http://stackoverflow.com/questions/20327937/valueerror-unconverted-data-remains-0205">ValueError: unconverted data remains: 02:05</a></p>

python datetime