Skip to content

Docket descriptions aren't always in column 2 of a PACER docket report #239

@johnhawkinson

Description

@johnhawkinson

For instance, if View Multiple Documents is checked, they move to the 3rd column:

screen shot 2018-12-03 at 23 18 19

Which is notionally

<table><tbody>
  <tr>
    <td>Date Filed</td>
    <th>#</th>
    <td><small><a href="#" onclick="uncheckAll(document.view_multi_docs.arr_de_seq_nums)" '="">clear</a></small></td>
    <td style="font-weight:bold">Docket Text</td>
  </tr><tr>
    <td>/21/2018</td>
    <td><a>186</a>&nbsp;</td>
    <td><input type="checkbox" name="arr_de_seq_nums" value="567" onclick="this.form.total.value=calculateTotal(this.checked, 44712.0);"> </td>
    <td>Judge Mark L. Wolf: "It is hereby ORDERED that the parties
      shall continue to confer and report on the status of their
      discussions by December 3, 2018." ENDORSED ORDER entered. re <a>185</a>
      Status Report filed by Kirstjen M NIELSEN (Bono, Christine)
      (Entered: 11/21/2018)
    </td>
  </tr>
</tbody></table>

But the parser hardcodes column 2:

def _get_description(self, cells):
if self.court_id != u'txnb':
return force_unicode(cells[2].text_content())

which is obviously wrong. I expect I'll fix this...in a while.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions