title: ValueError: too many values to unpack (Python)
body: <p>So this is pretty much a web scraping program. I feel as if it is nearly finished, but I have no clue how to fix this!</p>
  <pre><code>Traceback (most recent call last):
    File &quot;AgriMet4.py&quot;, line 424, in &lt;module&gt;
      orig_column = convert(station, webpage, data_type)
    File &quot;AgriMet4.py&quot;, line 244, in convert
      ag_date, ag_time, ag_data_str = line.split()
  ValueError: too many values to unpack
  </code></pre>
  <p>Here are the parts that are flagged:</p>
  <pre><code>     # Break line into components
          ag_date, ag_time, ag_data_str = line.split()
          ag_datetime = ag_date + &quot; &quot; + ag_time
          ag_datetime = datetime.datetime.strptime(ag_datetime, &quot;%m/%d/%Y %H:%M&quot;)
          ag_data = float(ag_data_str)
  </code></pre>
  <p>and</p>
  <pre><code>columns = []
  for data_type in data_types:
      webpage = download(station, data_type, effective_begin_date, effective_end_date)
      orig_column = convert(station, webpage, data_type)
      std_column = fill_gaps(orig_column, interval, data_type,
                             effective_begin_date, effective_end_date)
      adjusted_column = adjust_datetimes(station, time_zone_offset, std_column)
      columns.append(adjusted_column)
  </code></pre>
  <p>EDIT: I've made the code shorter. Sorry!</p>