title: ' TypeError: Parser must be a string or character stream, not list' Python
body: <p>I'm getting this error</p>
  <pre class="lang-py prettyprint-override"><code>raise TypeError('Parser must be a string or character stream, not '
  TypeError: Parser must be a string or character stream, not list
  </code></pre>
  <p>My code:</p>
  <pre><code>for page in range(1, int(no_pages)):
      req = requests.get(url3 + str(page))
      soup = BeautifulSoup(req.content, 'html.parser')
      time = soup.find_all('time', {&quot;class&quot;:&quot;timeago b-card--el-agency-time&quot;})
      m_time = [item['datetime'] for item in time]
      unf_time = dateutil.parser.parse(m_time)
      r_time = unf_time.strftime('%m-%d-%Y:%H:%M:%S')
      l7 = r_time
      s7 = pd.Series(l7, name='Time Posted')
      df = pd.concat([s1,s2,s3,s7,s4,s6+s5], axis=1)
  </code></pre>
  <p>As its in a <strong>for loop</strong>, its taking the data as a <strong>list</strong>.
  How do I prevent this <strong>error</strong>?
  I want the output like this:</p>
  <pre><code>    Time
  0 08-25-2020:09:44:06
  1 08-22-2020:09:44:06
  2 08-29-2020:09:44:06
  3 08-21-2020:09:44:06
  etc.
  </code></pre>
  <p>So how do I do it?</p>