Repository: freelawproject/juriscraper (language: python)

Issue:
Docket report error strings with unescaped periods causing parser validation to fail
Another small one:

"Case not found." is causing this docket fail (txsd 2:20-cr-00606):
<img width="297" alt="Screenshot 2024-05-20 at 11 34 58 AM" src="https://github.com/freelawproject/juriscraper/assets/58701810/cdf625b1-96c6-406a-860e-97df786c9fc2">

I think the problem is that some of these error strings have literal periods whereas other strings include patterns (e.g. "The case type was.*but it must be").

Since we have both would it just make sense to escape all the punctuation manually?



Discussion / hints:

Fix patch:
diff --git a/juriscraper/pacer/docket_report.py b/juriscraper/pacer/docket_report.py
index 6c171d8f2..3ac6e8ee2 100644
--- a/juriscraper/pacer/docket_report.py
+++ b/juriscraper/pacer/docket_report.py
@@ -350,23 +350,23 @@ class DocketReport(BaseDocketReport, BaseReport):
     ERROR_STRINGS = BaseReport.ERROR_STRINGS + [
         "The report may take a long time to run because this case has many "
         "docket entries",
-        "The page ID does not exist. Please enter a valid page ID number. ",
-        "There are no documents in this case.",
-        "Incomplete request. Please try your query again by choosing the "
+        "The page ID does not exist\\. Please enter a valid page ID number\\. ",
+        "There are no documents in this case\\.",
+        "Incomplete request\\. Please try your query again by choosing the "
         "Query or Reports option",
         "To accept charges shown below, click on the 'View Report' button",
-        "\\*\\*\\* This case was administratively closed.\\*\\*\\*",
+        "\\*\\*\\* This case was administratively closed\\.\\*\\*\\*",
         "The start date must be less than or equal to the end date",
         "The starting document number must be less than or equal to the "
         "ending document number",
-        "Case not found.",
+        "Case not found\\.",
         "Either you do not have permission to view the document, or the "
-        "document does not exist in the case.",
+        "document does not exist in the case\\.",
         "Format: text",
-        "Server timeout waiting for the HTTP request from the client.",
+        "Server timeout waiting for the HTTP request from the client\\.",
         "The case type was.*but it must be",
         "This case is in the process of being opened, please check back later "
-        "for additional information.",
+        "for additional information\\.",
         "Submission already made, please wait for response from server",
     ]
 


Test patch:
diff --git a/tests/examples/pacer/dockets/district/txsd_1.html b/tests/examples/pacer/dockets/district/txsd_1.html
new file mode 100644
index 000000000..0a4853589
--- /dev/null
+++ b/tests/examples/pacer/dockets/district/txsd_1.html
@@ -0,0 +1,156 @@
+<html><head><link rel="shortcut icon" href="/favicon.ico"><title>DC CM/ECF LIVE- US District Court-Texas Southern</title>
+<script type="text/javascript">var default_base_path = "/"; </script><script type="text/javascript">if (top!=self) {top.location.replace(location.href);}</script><link rel="stylesheet" type="text/css" href="/css/default.css"><script type="text/javascript" src="/lib/core.js"></script><link rel="stylesheet" type="text/css" href="/css/print.css" media="print"><script type="text/javascript" src="/cgi-bin/menu.pl?id=-1"></script></head><body text="000000" bgcolor="F9F9F9"><iframe id="_yuiResizeMonitor" style="position: absolute; visibility: visible; width: 10em; height: 10em; top: -164px; left: -164px; border-width: 0px;"></iframe>        <div id="topmenu" class="yuimenubar yui-module yui-overlay visible" style="position: static; display: block; z-index: 30; visibility: visible;">
+				<div class="bd"><img src="/graphics/logo-cmecf-sm.png" class="cmecfLogo" id="cmecfLogo" alt="CM/ECF" title="">
+				<ul class="first-of-type">
+<li class="yuimenubaritem first-of-type" id="yui-gen0" groupindex="0" index="0"><a class="yuimenubaritemlabel" href="/cgi-bin/iquery.pl"><u>Q</u>uery</a></li>
+<li class="yuimenubaritem yuimenubaritem-hassubmenu" id="yui-gen1" groupindex="0" index="1"><a class="yuimenubaritemlabel yuimenubaritemlabel-hassubmenu" href="/cgi-bin/DisplayMenu.pl?Reports">Reports <div class="spritedownarrow"></div></a></li>
+<li class="yuimenubaritem yuimenubaritem-hassubmenu" id="yui-gen2" groupindex="0" index="2"><a class="yuimenubaritemlabel yuimenubaritemlabel-hassubmenu" href="/cgi-bin/DisplayMenu.pl?Utilities"><u>U</u>tilities <div class="spritedownarrow"></div></a></li>
+				<li class="yuimenubaritem" id="yui-gen3" groupindex="0" index="3">
+				<a class="yuimenubaritemlabel" onclick="CMECF.MainMenu.showHelpPage(); return false">Help</a></li>
+				
+<li class="yuimenubaritem" id="yui-gen4" groupindex="0" index="4"><a class="yuimenubaritemlabel" href="/cgi-bin/login.pl?logout">Log Out</a></li></ul><hr class="hrmenuseparator"></div></div><script type="text/javascript">if (navigator.appVersion.indexOf("MSIE")==-1){window.setTimeout(CMECF.MainMenu.createMenu, 0);}else{CMECF.util.Event.addListener(window, "load", CMECF.MainMenu.createMenu);}</script> <div id="cmecfMainContent" style="height: 640px;"><input type="hidden" id="cmecfMainContentScroll" value="0">
+				<table width="100%" cellspacing="0" border="0">
+					<tbody><tr><td align="right"><span>INTERPRETER</span></td></tr>
+				</tbody></table>
+			<h3 align="center">U.S. District Court<br>
+SOUTHERN DISTRICT OF TEXAS (Corpus Christi)<br>
+CRIMINAL DOCKET FOR CASE #: 2:20-cr-00606-1</h3>
+<table width="100%" cellspacing="5" border="0"><tbody><tr>
+<td width="60%" valign="top"><br>Case title: USA v. Arias-Hernandez <br><br>
+<table cellspacing="0" border="0"><tbody><tr><td valign="top">Magistrate&nbsp;judge&nbsp;case&nbsp;number:&nbsp;</td><td>2:20-mj-00927</td></tr></tbody></table>
+</td>
+<td width="40%" valign="top"><br>Date Filed: 03/27/2020 <br><br>
+Date Terminated: 04/17/2020</td>
+</tr></tbody></table>
+<hr><table width="100%" cellspacing="5" border="0"><tbody><tr><td width="40%" valign="top">Assigned to: Judge David S Morales</td></tr>
+
+			<tr>
+				<td valign="top"><br><b><u>Defendant                                 (1)</u></b></td>
+			</tr>
+		
+			<tr>
+				<td width="40%" valign="top">
+					<b>Martin Arias-Hernandez</b>
+<br><i>TERMINATED: 04/17/2020</i>
+		</td>
+<td width="20%" valign="top" align="right">represented&nbsp;by</td><td width="40%" valign="top"><b>Federal              Public          Defender - Corpus Christi                         </b>
+<br>606 N Carancahua                                            
+<br>Ste 401                                                     
+<br>Corpus Christi, TX 78476          
+<br>361-888-3532             
+<br>Email: Mary_Montoya@fd.org
+<br><i>LEAD ATTORNEY</i>
+<br><i>ATTORNEY TO BE NOTICED</i>
+<br><i>Designation: Public Defender or Community Defender Appointment</i><br><br>
+<b>Rachel               Elizabeth       Braver                                            </b>
+<br>Office of the Federal Public Defender                       
+<br>606 N. Carancahua                                           
+<br>Ste. 401                                                    
+<br>Corpus Christi, TX 78401-0697     
+<br>361-888-3532             
+<br>Fax: 361-888-3534        
+<br>Email: rachel_braver@fd.org
+<br><i>LEAD ATTORNEY</i>
+<br><i>ATTORNEY TO BE NOTICED</i>
+<br><i>Designation: Public Defender or Community Defender Appointment</i><br><br>
+<b>Corpus Christi       Interpreter                                       </b>
+<br><i>ATTORNEY TO BE NOTICED</i>
+<br><i>Designation: Retained</i></td></tr>
+
+				<tr>
+					<td width="40%" valign="top"><br><b><u>Pending Counts</u></b></td>
+					<td></td>
+					<td width="40%" valign="top"><br><b><u>Disposition</u></b></td>
+				</tr>
+			
+					<tr>
+						<td width="40%"> REENTRY OF DEPORTED ALIENS<br>(1)</td>
+						<td></td>
+						<td width="60%">TIME SERVED; $100 Special Assessment (remitted)</td>
+					</tr>
+				
+				<tr>
+					<td width="40%" valign="top"><br><b><u>Highest Offense Level (Opening)</u></b></td>
+				</tr>
+				<tr>
+					<td width="40%" valign="top">Felony</td>
+				</tr>
+			
+				<tr>
+					<td width="40%" valign="top"><br><b><u>Terminated Counts</u></b></td>
+					<td></td>
+					<td width="40%" valign="top"><br><b><u>Disposition</u></b></td>
+				</tr>
+			
+					<tr>
+						<td width="40%" valign="top">None</td>
+					</tr>
+				
+				<tr>
+					<td width="40%" valign="top"><br><b><u>Highest Offense Level (Terminated)</u></b></td>
+				</tr>
+				<tr>
+					<td width="40%" valign="top">None</td>
+				</tr>
+			
+				<tr>
+					<td width="40%" valign="top"><br><b><u>Complaints</u></b></td>
+					<td></td>
+					<td width="40%" valign="top"><br><b><u>Disposition</u></b></td>
+				</tr>
+			
+					<tr>
+						<td width="40%"> 8:1326.F--REENTRY OF DEPORTED ALIENS</td>
+						<td></td>
+						<td width="60%"></td>
+					</tr>
+				</tbody></table><hr><table width="100%" cellspacing="5" border="0">
+			<tbody><tr>
+				<td width="40%" valign="top"><br><b><u>Plaintiff</u></b></td>
+			</tr>
+		
+				<tr>
+					<td width="40%" valign="top">
+						<b>USA</b>
+					</td>
+			<td width="20%" valign="top" align="right">represented&nbsp;by</td><td width="40%" valign="top"><b>Neel                 Kapur                                             </b>
+<br>US Attorney's Office                                   
+<br>800 N Shoreline Blvd                                        
+<br>Ste 500                                                     
+<br>Corpus Christi, TX 78401          
+<br>361-888-3111             
+<br>Email: neel.kapur@usdoj.gov
+<br><i>LEAD ATTORNEY</i>
+<br><i>ATTORNEY TO BE NOTICED</i>
+<br><i>Designation: Retained</i></td></tr>
+</tbody></table>
+<br><table rules="all" width="99%" cellspacing="0" cellpadding="5" border="1" align="center">
+<tbody><tr><td style="font-weight:bold; width=94; white-space:nowrap">Date Filed</td>
+<th>#</th><td style="font-weight:bold">Docket Text</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/14/2020</td><td style="white-space:nowrap" valign="top" align="right">&nbsp;</td><td valign="top">Arrest of Martin Arias-Hernandez. (KendraPearsonadi, 2) [2:20-mj-00927] (Entered: 03/16/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/15/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179035790896" onclick="goDLS('/doc1/179035790896','1774937','7','','1','1','','');return(false);">1</a>&nbsp;</td><td valign="top">COMPLAINT as to Martin Arias-Hernandez (1), filed. (Brooks) Initial Appearance set for 3/16/2020 at 11:15 AM before Magistrate Judge Jason B Libby (Attachments: # <a href="https://ecf.txsd.uscourts.gov/doc1/179135790897" onclick="goDLS('/doc1/179135790897','1774937','7','','1','1','','');return(false);">1</a> Affidavit) (fcarbia, 2) [2:20-mj-00927] (Entered: 03/15/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/16/2020</td><td style="white-space:nowrap" valign="top" align="right">&nbsp;</td><td valign="top">Interpreter needed as to Martin Arias-Hernandez. Language: SPANISH. Corpus Christi Interpreter for Martin Arias-Hernandez added. (KendraPearsonadi, 2) [2:20-mj-00927] (Entered: 03/16/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/16/2020</td><td style="white-space:nowrap" valign="top" align="right">&nbsp;</td><td valign="top">Minute Entry for proceedings held before Magistrate Judge Jason B Libby: INITIAL APPEARANCE as to Martin Arias-Hernandez, (Deft informed of rights) held on 3/16/2020. Defendant requests appointed counsel. Court grants request for appointment of counsel. Government moves for detention and requests a continuance. Court grants Government's request for continuance. Rights to consular notification given; defendant or counsel may notify the Court if they request notification. Preliminary Examination &amp; Detention Hearing set for 3/19/2020 at 09:00 AM before Magistrate Judge Jason B Libby. Appearances: Amanda Gould, AUSA; USM: George Butcher; Christopher Porche. (Digital # 11:15:30-11:21:35) (ERO: Annette Martinez) (Interpreter: L. Parada-Valdes and S. Buckley/used) Deft remanded to custody. (KendraPearsonadi, 2) [2:20-mj-00927] (Entered: 03/16/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/17/2020</td><td style="white-space:nowrap" valign="top" align="right">&nbsp;</td><td valign="top">US ATTORNEY'S NOTICE OF APPEARANCE. Neel Kapur appearing for USA, filed.(Kapur, Neel) [2:20-mj-00927] (Entered: 03/17/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/17/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135790908" onclick="goDLS('/doc1/179135790908','1774937','12','','1','1','','');return(false);">2</a>&nbsp;</td><td valign="top">ORDER APPOINTING FEDERAL PUBLIC DEFENDER. (Signed by Magistrate Judge Jason B. Libby) Parties notified. (mjassoadi, 2) [2:20-mj-00927] (Entered: 03/17/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/17/2020</td><td style="white-space:nowrap" valign="top" align="right">&nbsp;</td><td valign="top">NOTICE OF ATTORNEY APPEARANCE Rachel Elizabeth Braver, Federal Public Defender, in case as to Martin Arias-Hernandez, filed.(Braver, Rachel) [2:20-mj-00927] (Entered: 03/17/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/19/2020</td><td style="white-space:nowrap" valign="top" align="right">&nbsp;</td><td valign="top">Minute Entry for proceedings held before Magistrate Judge Jason B Libby: PRELIMINARY EXAMINATION &amp; DETENTION HEARING as to Martin Arias-Hernandez held on 3/19/2020 Defense counsel orally waives both hearings in open court with the permission of defendant. Appearances: Cody Barnes, AUSA; Rachel Braver f/Defendant; USPO: Joann Torres-Cadena; USM: Robin Richards; Christopher Porche. (Digital # 9;13:38-9:14:36) (ERO: Kellie Papaioannou) (Interpreter: M. Wallace/not used) Deft remanded to custody. (KendraPearsonadi, 2) [2:20-mj-00927] (Entered: 03/19/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/19/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135790915" onclick="goDLS('/doc1/179135790915','1774937','15','','1','1','','');return(false);">3</a>&nbsp;</td><td valign="top">ORDER OF DETENTION PENDING TRIAL as to Martin Arias-Hernandez ( Signed by Magistrate Judge Jason B Libby) Parties notified. (KendraPearsonadi, 2) [2:20-mj-00927] (Entered: 03/19/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/25/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135790919" onclick="goDLS('/doc1/179135790919','1774937','16','','1','1','','');return(false);">4</a>&nbsp;</td><td valign="top">Pretrial Services Report (Sealed) as to Martin Arias-Hernandez, filed. (ErinLandrum, 2) [2:20-mj-00927] (Entered: 03/25/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/27/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135790942" onclick="goDLS('/doc1/179135790942','1774937','34','','1','1','','');return(false);">5</a>&nbsp;</td><td valign="top">INFORMATION as to Martin Arias-Hernandez (1) count(s) 1, filed. (KelliePapaioannou, 2) (Entered: 03/30/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/27/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135790963" onclick="goDLS('/doc1/179135790963','1774937','41','','1','1','','');return(false);">6</a>&nbsp;</td><td valign="top">US Attys Criminal Docket Sheet as to Martin Arias-Hernandez, filed.(KelliePapaioannou, 2) (Entered: 03/30/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">03/31/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135804933" onclick="goDLS('/doc1/179135804933','1774937','43','','1','1','','');return(false);">7</a>&nbsp;</td><td valign="top">NOTICE OF SETTING as to Martin Arias-Hernandez. Plea and Sentence set for 4/8/2020 at 09:00 AM before Judge David S Morales, filed. (arodriguez, 2) (Entered: 03/31/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/02/2020</td><td style="white-space:nowrap" valign="top" align="right">&nbsp;</td><td valign="top">**Terminate Deadlines and Hearings as to Martin Arias-Hernandez: Plea and Sentence CANCELED - case not found eligible for expedited hearing. (arodriguez, 2) (Entered: 04/02/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/06/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135824307" onclick="goDLS('/doc1/179135824307','1774937','47','','1','1','','');return(false);">8</a>&nbsp;</td><td valign="top">SCHEDULING ORDER as to Martin Arias-Hernandez. Arraignment set for 4/9/2020 at 10:00 AM before Magistrate Judge Jason B.Libby. Final Pretrial Conference set for 4/30/2020 at 02:00 PM before Magistrate Judge Jason B.Libby. Jury Trial set for 5/4/2020 at 08:30 AM before Judge David S. Morales. (Signed by Magistrate Judge Jason B.Libby) Parties notified. (KendraPearson, 2) (Entered: 04/06/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/06/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135826684" onclick="goDLS('/doc1/179135826684','1774937','49','','1','1','','');return(false);">9</a>&nbsp;</td><td valign="top">WAIVER of Presence at Arraignment and Entry of Plea of Not Guilty, filed.(Braver, Rachel) (Entered: 04/06/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/06/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135828339" onclick="goDLS('/doc1/179135828339','1774937','52','','1','1','','');return(false);">10</a>&nbsp;</td><td valign="top">ORDER as to Martin Arias-Hernandez <a href="https://ecf.txsd.uscourts.gov/doc1/179135826684" onclick="goDLS('/doc1/179135826684','1774937','49','','1','1','','');return(false);">9</a> WAIVER of Presence at Arraignment and Entry of Plea of Not Guilty ( Signed by Magistrate Judge Jason B Libby) Parties notified. (legarza, 2) (Entered: 04/06/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/09/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135845174" onclick="goDLS('/doc1/179135845174','1774937','54','','1','1','','');return(false);">11</a>&nbsp;</td><td valign="top">NOTICE OF SETTING as to Martin Arias-Hernandez. Re-Arraignment set for 4/14/2020 at 09:00 AM before Magistrate Judge Jason B Libby, filed. (KendraPearson, 2) (Entered: 04/09/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/09/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135845645" onclick="goDLS('/doc1/179135845645','1774937','56','','1','1','','');return(false);">12</a>&nbsp;</td><td valign="top">NOTICE of Resetting as to Martin Arias-Hernandez. Parties notified. Re-Arraignment reset for 4/14/2020 at 09:00 AM before Magistrate Judge Jason B Libby, filed. Defendants will appear by video-conference. Attorneys may appear by telephone and follow these instructions: Dial in to the Court's Conference phone number of 361-693-6518 (this line will be open 5 minutes prior to the hearing); when prompted, enter your conference ID (26518); when prompted, enter your password (13579); you will now be connected to the conference call. (KendraPearson, 2) (Entered: 04/09/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/09/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135848767" onclick="goDLS('/doc1/179135848767','1774937','58','','1','1','','');return(false);">13</a>&nbsp;</td><td valign="top">NOTICE OF SETTING as to Martin Arias-Hernandez. Plea and Sentence set for 4/15/2020 at 03:00 PM before Judge David S Morales, filed. (arodriguez, 2) (Entered: 04/09/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/10/2020</td><td style="white-space:nowrap" valign="top" align="right">&nbsp;</td><td valign="top">**Terminate Deadlines and Hearings as to Martin Arias-Hernandez: Re-Arraignment reset for 4/14/2020 at 09:00 AM before Magistrate Judge Jason B Libby is canceled. (KendraPearson, 2) (Entered: 04/10/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/15/2020</td><td style="white-space:nowrap" valign="top" align="right">&nbsp;</td><td valign="top">Minute Entry for proceedings held before Judge David S Morales: RE-ARRAIGNMENT held on 4/15/2020. Martin Arias-Hernandez (1) Guilty Count 1. Deft states he/she is ready to plea guilty today. Deft consents to entering guilty plea by video conference. Deft waives Indictment by Grand Jury. Court accepts the guilty plea. No plea agreement. The standard agreement was offered and explained to the deft, but the deft rejected the agreement. Deft wishes to waive the preparation of a PSR and proceed immediately to sentencing. Appearances:AUSA Y. Zheng; FPD Rachel Braver; USPO CC.(Digital # 2:41 - 3:10)(ERO:K. Papaioannou) (Interpreter: S. Buckley) Deft remanded to custody of USMS, filed.(arodriguez, 2) (Entered: 04/15/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/15/2020</td><td style="white-space:nowrap" valign="top" align="right">&nbsp;</td><td valign="top">Minute Entry for proceedings held before Judge David S Morales: Sentencing held on 4/15/2020 for Martin Arias-Hernandez (1), Count(s) 1, TIME SERVED; $100 Special Assessment (remitted). Deft requests to proceed without the preparation of a PSR. No objection from the Gvmt. The Court waives the requirement of the presentence investigation and adopts the findings in the worksheet as prepared by Probation. Deft is advised of his right to appeal his conviction and sentence. Appearances:AUSA Y. Zheng; FPD Rachel Braver; USPO CC.(Digital # 2:41 - 3:10)(ERO: K. Papaioannou) (Interpreter: S. Buckley) Deft remanded to custody of USMS, filed.(arodriguez, 2) (Entered: 04/15/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/17/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135880890" onclick="goDLS('/doc1/179135880890','1774937','69','','1','1','','');return(false);">14</a>&nbsp;</td><td valign="top"> JUDGMENT as to Martin Arias-Hernandez ( Signed by Judge David S Morales) Parties notified. (MaraSalas, 2) (Entered: 04/17/2020)</td></tr>
+<tr><td width="94" valign="top" nowrap="">04/17/2020</td><td style="white-space:nowrap" valign="top" align="right"><a href="https://ecf.txsd.uscourts.gov/doc1/179135880907" onclick="goDLS('/doc1/179135880907','1774937','72','','1','1','','');return(false);">15</a>&nbsp;</td><td valign="top">Statement of Reasons (Sealed) as to Martin Arias-Hernandez. <font color="red">NOTICE: Document available to applicable parties only. Authorized users enter CM/ECF Filer login and password first for authentication. Instructions available at http://www.txs.uscourts.gov/attorney-information - Electronic Access to Sealed Documents. Be sure to <b>SAVE</b> the document locally at the time of viewing</font>, filed. (Entered: 04/17/2020)</td></tr>
+</tbody></table><br>
+<hr><center><table width="400" border="1" bgcolor="white"><tbody><tr><th colspan="4"><font size="+1" color="DARKRED">PACER Service Center </font></th></tr><tr><th colspan="4"><font color="DARKBLUE">Transaction Receipt </font></th></tr><tr></tr><tr></tr><tr><td colspan="4" align="CENTER"><font size="-1" color="DARKBLUE">[DATE REMOVED]</font></td></tr><tr><th align="LEFT"><font size="-1" color="DARKBLUE"> PACER Login: </font></th><td align="LEFT"><font size="-1" color="DARKBLUE"> [LOGIN REMOVED] </font></td><th align="LEFT"><font size="-1" color="DARKBLUE"> Client Code: </font></th><td align="LEFT"><font size="-1" color="DARKBLUE">  </font></td></tr><tr><th align="LEFT"><font size="-1" color="DARKBLUE"> Description: </font></th><td align="LEFT"><font size="-1" color="DARKBLUE"> Docket Report </font></td><th align="LEFT"><font size="-1" color="DARKBLUE"> Search Criteria: </font></th><td align="LEFT"><font size="-1" color="DARKBLUE"> 2:20-cr-00606     </font></td></tr><tr><th align="LEFT"><font size="-1" color="DARKBLUE"> Billable Pages: </font></th><td align="LEFT"><font size="-1" color="DARKBLUE"> 4 </font></td><th align="LEFT"><font size="-1" color="DARKBLUE"> Cost: </font></th><td align="LEFT"><font size="-1" color="DARKBLUE"> 0.40 </font></td></tr><tr></tr><tr></tr></tbody></table></center></div></body></html>
\ No newline at end of file
diff --git a/tests/examples/pacer/dockets/district/txsd_1.json b/tests/examples/pacer/dockets/district/txsd_1.json
new file mode 100644
index 000000000..abbc29e0b
--- /dev/null
+++ b/tests/examples/pacer/dockets/district/txsd_1.json
@@ -0,0 +1,286 @@
+{
+  "court_id": "txsd",
+  "docket_number": "2:20-cr-00606",
+  "case_name": "United States v. Arias-Hernandez",
+  "date_filed": "2020-03-27",
+  "date_terminated": "2020-04-17",
+  "date_converted": null,
+  "date_discharged": null,
+  "assigned_to_str": "David S. Morales",
+  "referred_to_str": "",
+  "cause": "",
+  "nature_of_suit": "",
+  "jury_demand": "",
+  "demand": "",
+  "jurisdiction": "",
+  "mdl_status": "",
+  "ordered_by": "date_filed",
+  "parties": [
+    {
+      "type": "Defendant",
+      "name": "Martin Arias-Hernandez",
+      "extra_info": "TERMINATED: 04/17/2020",
+      "date_terminated": "2020-04-17",
+      "attorneys": [
+        {
+          "name": "Federal Public Defender - Corpus Christi",
+          "roles": [
+            "LEAD ATTORNEY",
+            "ATTORNEY TO BE NOTICED"
+          ],
+          "contact": "606 N Carancahua\nSte 401\nCorpus Christi, TX 78476\n361-888-3532\nEmail: Mary_Montoya@fd.org\n"
+        },
+        {
+          "name": "Rachel Elizabeth Braver",
+          "roles": [
+            "LEAD ATTORNEY",
+            "ATTORNEY TO BE NOTICED"
+          ],
+          "contact": "Office of the Federal Public Defender\n606 N. Carancahua\nSte. 401\nCorpus Christi, TX 78401-0697\n361-888-3532\nFax: 361-888-3534\nEmail: rachel_braver@fd.org\n"
+        },
+        {
+          "name": "Corpus Christi Interpreter",
+          "roles": [
+            "ATTORNEY TO BE NOTICED"
+          ],
+          "contact": ""
+        }
+      ],
+      "criminal_data": {
+        "counts": [
+          {
+            "name": "REENTRY OF DEPORTED ALIENS(1)",
+            "disposition": "TIME SERVED; $100 Special Assessment (remitted)",
+            "status": "pending"
+          }
+        ],
+        "complaints": [
+          {
+            "name": "8:1326.F--REENTRY OF DEPORTED ALIENS",
+            "disposition": ""
+          }
+        ],
+        "highest_offense_level_opening": "Felony",
+        "highest_offense_level_terminated": "None"
+      }
+    },
+    {
+      "type": "Plaintiff",
+      "name": "USA",
+      "extra_info": "",
+      "date_terminated": null,
+      "attorneys": [
+        {
+          "name": "Neel Kapur",
+          "roles": [
+            "LEAD ATTORNEY",
+            "ATTORNEY TO BE NOTICED"
+          ],
+          "contact": "US Attorney's Office\n800 N Shoreline Blvd\nSte 500\nCorpus Christi, TX 78401\n361-888-3111\nEmail: neel.kapur@usdoj.gov\n"
+        }
+      ]
+    }
+  ],
+  "docket_entries": [
+    {
+      "date_filed": "2020-03-14",
+      "document_number": null,
+      "pacer_doc_id": null,
+      "pacer_seq_no": null,
+      "description": "Arrest of Martin Arias-Hernandez. (KendraPearsonadi, 2) [2:20-mj-00927] (Entered: 03/16/2020)",
+      "date_entered": "2020-03-16"
+    },
+    {
+      "date_filed": "2020-03-15",
+      "document_number": "1",
+      "pacer_doc_id": "179035790896",
+      "pacer_seq_no": "7",
+      "description": "COMPLAINT as to Martin Arias-Hernandez (1), filed. (Brooks) Initial Appearance set for 3/16/2020 at 11:15 AM before Magistrate Judge Jason B Libby (Attachments: # 1 Affidavit) (fcarbia, 2) [2:20-mj-00927] (Entered: 03/15/2020)",
+      "date_entered": "2020-03-15"
+    },
+    {
+      "date_filed": "2020-03-16",
+      "document_number": null,
+      "pacer_doc_id": null,
+      "pacer_seq_no": null,
+      "description": "Interpreter needed as to Martin Arias-Hernandez. Language: SPANISH. Corpus Christi Interpreter for Martin Arias-Hernandez added. (KendraPearsonadi, 2) [2:20-mj-00927] (Entered: 03/16/2020)",
+      "date_entered": "2020-03-16"
+    },
+    {
+      "date_filed": "2020-03-16",
+      "document_number": null,
+      "pacer_doc_id": null,
+      "pacer_seq_no": null,
+      "description": "Minute Entry for proceedings held before Magistrate Judge Jason B Libby: INITIAL APPEARANCE as to Martin Arias-Hernandez, (Deft informed of rights) held on 3/16/2020. Defendant requests appointed counsel. Court grants request for appointment of counsel. Government moves for detention and requests a continuance. Court grants Government's request for continuance. Rights to consular notification given; defendant or counsel may notify the Court if they request notification. Preliminary Examination & Detention Hearing set for 3/19/2020 at 09:00 AM before Magistrate Judge Jason B Libby. Appearances: Amanda Gould, AUSA; USM: George Butcher; Christopher Porche. (Digital # 11:15:30-11:21:35) (ERO: Annette Martinez) (Interpreter: L. Parada-Valdes and S. Buckley/used) Deft remanded to custody. (KendraPearsonadi, 2) [2:20-mj-00927] (Entered: 03/16/2020)",
+      "date_entered": "2020-03-16"
+    },
+    {
+      "date_filed": "2020-03-17",
+      "document_number": null,
+      "pacer_doc_id": null,
+      "pacer_seq_no": null,
+      "description": "US ATTORNEY'S NOTICE OF APPEARANCE. Neel Kapur appearing for USA, filed.(Kapur, Neel) [2:20-mj-00927] (Entered: 03/17/2020)",
+      "date_entered": "2020-03-17"
+    },
+    {
+      "date_filed": "2020-03-17",
+      "document_number": "2",
+      "pacer_doc_id": "179035790908",
+      "pacer_seq_no": "12",
+      "description": "ORDER APPOINTING FEDERAL PUBLIC DEFENDER. (Signed by Magistrate Judge Jason B. Libby) Parties notified. (mjassoadi, 2) [2:20-mj-00927] (Entered: 03/17/2020)",
+      "date_entered": "2020-03-17"
+    },
+    {
+      "date_filed": "2020-03-17",
+      "document_number": null,
+      "pacer_doc_id": null,
+      "pacer_seq_no": null,
+      "description": "NOTICE OF ATTORNEY APPEARANCE Rachel Elizabeth Braver, Federal Public Defender, in case as to Martin Arias-Hernandez, filed.(Braver, Rachel) [2:20-mj-00927] (Entered: 03/17/2020)",
+      "date_entered": "2020-03-17"
+    },
+    {
+      "date_filed": "2020-03-19",
+      "document_number": null,
+      "pacer_doc_id": null,
+      "pacer_seq_no": null,
+      "description": "Minute Entry for proceedings held before Magistrate Judge Jason B Libby: PRELIMINARY EXAMINATION & DETENTION HEARING as to Martin Arias-Hernandez held on 3/19/2020 Defense counsel orally waives both hearings in open court with the permission of defendant. Appearances: Cody Barnes, AUSA; Rachel Braver f/Defendant; USPO: Joann Torres-Cadena; USM: Robin Richards; Christopher Porche. (Digital # 9;13:38-9:14:36) (ERO: Kellie Papaioannou) (Interpreter: M. Wallace/not used) Deft remanded to custody. (KendraPearsonadi, 2) [2:20-mj-00927] (Entered: 03/19/2020)",
+      "date_entered": "2020-03-19"
+    },
+    {
+      "date_filed": "2020-03-19",
+      "document_number": "3",
+      "pacer_doc_id": "179035790915",
+      "pacer_seq_no": "15",
+      "description": "ORDER OF DETENTION PENDING TRIAL as to Martin Arias-Hernandez ( Signed by Magistrate Judge Jason B Libby) Parties notified. (KendraPearsonadi, 2) [2:20-mj-00927] (Entered: 03/19/2020)",
+      "date_entered": "2020-03-19"
+    },
+    {
+      "date_filed": "2020-03-25",
+      "document_number": "4",
+      "pacer_doc_id": "179035790919",
+      "pacer_seq_no": "16",
+      "description": "Pretrial Services Report (Sealed) as to Martin Arias-Hernandez, filed. (ErinLandrum, 2) [2:20-mj-00927] (Entered: 03/25/2020)",
+      "date_entered": "2020-03-25"
+    },
+    {
+      "date_filed": "2020-03-27",
+      "document_number": "5",
+      "pacer_doc_id": "179035790942",
+      "pacer_seq_no": "34",
+      "description": "INFORMATION as to Martin Arias-Hernandez (1) count(s) 1, filed. (KelliePapaioannou, 2) (Entered: 03/30/2020)",
+      "date_entered": "2020-03-30"
+    },
+    {
+      "date_filed": "2020-03-27",
+      "document_number": "6",
+      "pacer_doc_id": "179035790963",
+      "pacer_seq_no": "41",
+      "description": "US Attys Criminal Docket Sheet as to Martin Arias-Hernandez, filed.(KelliePapaioannou, 2) (Entered: 03/30/2020)",
+      "date_entered": "2020-03-30"
+    },
+    {
+      "date_filed": "2020-03-31",
+      "document_number": "7",
+      "pacer_doc_id": "179035804933",
+      "pacer_seq_no": "43",
+      "description": "NOTICE OF SETTING as to Martin Arias-Hernandez. Plea and Sentence set for 4/8/2020 at 09:00 AM before Judge David S Morales, filed. (arodriguez, 2) (Entered: 03/31/2020)",
+      "date_entered": "2020-03-31"
+    },
+    {
+      "date_filed": "2020-04-02",
+      "document_number": null,
+      "pacer_doc_id": null,
+      "pacer_seq_no": null,
+      "description": "**Terminate Deadlines and Hearings as to Martin Arias-Hernandez: Plea and Sentence CANCELED - case not found eligible for expedited hearing. (arodriguez, 2) (Entered: 04/02/2020)",
+      "date_entered": "2020-04-02"
+    },
+    {
+      "date_filed": "2020-04-06",
+      "document_number": "8",
+      "pacer_doc_id": "179035824307",
+      "pacer_seq_no": "47",
+      "description": "SCHEDULING ORDER as to Martin Arias-Hernandez. Arraignment set for 4/9/2020 at 10:00 AM before Magistrate Judge Jason B.Libby. Final Pretrial Conference set for 4/30/2020 at 02:00 PM before Magistrate Judge Jason B.Libby. Jury Trial set for 5/4/2020 at 08:30 AM before Judge David S. Morales. (Signed by Magistrate Judge Jason B.Libby) Parties notified. (KendraPearson, 2) (Entered: 04/06/2020)",
+      "date_entered": "2020-04-06"
+    },
+    {
+      "date_filed": "2020-04-06",
+      "document_number": "9",
+      "pacer_doc_id": "179035826684",
+      "pacer_seq_no": "49",
+      "description": "WAIVER of Presence at Arraignment and Entry of Plea of Not Guilty, filed.(Braver, Rachel) (Entered: 04/06/2020)",
+      "date_entered": "2020-04-06"
+    },
+    {
+      "date_filed": "2020-04-06",
+      "document_number": "10",
+      "pacer_doc_id": "179035828339",
+      "pacer_seq_no": "52",
+      "description": "ORDER as to Martin Arias-Hernandez 9 WAIVER of Presence at Arraignment and Entry of Plea of Not Guilty ( Signed by Magistrate Judge Jason B Libby) Parties notified. (legarza, 2) (Entered: 04/06/2020)",
+      "date_entered": "2020-04-06"
+    },
+    {
+      "date_filed": "2020-04-09",
+      "document_number": "11",
+      "pacer_doc_id": "179035845174",
+      "pacer_seq_no": "54",
+      "description": "NOTICE OF SETTING as to Martin Arias-Hernandez. Re-Arraignment set for 4/14/2020 at 09:00 AM before Magistrate Judge Jason B Libby, filed. (KendraPearson, 2) (Entered: 04/09/2020)",
+      "date_entered": "2020-04-09"
+    },
+    {
+      "date_filed": "2020-04-09",
+      "document_number": "12",
+      "pacer_doc_id": "179035845645",
+      "pacer_seq_no": "56",
+      "description": "NOTICE of Resetting as to Martin Arias-Hernandez. Parties notified. Re-Arraignment reset for 4/14/2020 at 09:00 AM before Magistrate Judge Jason B Libby, filed. Defendants will appear by video-conference. Attorneys may appear by telephone and follow these instructions: Dial in to the Court's Conference phone number of 361-693-6518 (this line will be open 5 minutes prior to the hearing); when prompted, enter your conference ID (26518); when prompted, enter your password (13579); you will now be connected to the conference call. (KendraPearson, 2) (Entered: 04/09/2020)",
+      "date_entered": "2020-04-09"
+    },
+    {
+      "date_filed": "2020-04-09",
+      "document_number": "13",
+      "pacer_doc_id": "179035848767",
+      "pacer_seq_no": "58",
+      "description": "NOTICE OF SETTING as to Martin Arias-Hernandez. Plea and Sentence set for 4/15/2020 at 03:00 PM before Judge David S Morales, filed. (arodriguez, 2) (Entered: 04/09/2020)",
+      "date_entered": "2020-04-09"
+    },
+    {
+      "date_filed": "2020-04-10",
+      "document_number": null,
+      "pacer_doc_id": null,
+      "pacer_seq_no": null,
+      "description": "**Terminate Deadlines and Hearings as to Martin Arias-Hernandez: Re-Arraignment reset for 4/14/2020 at 09:00 AM before Magistrate Judge Jason B Libby is canceled. (KendraPearson, 2) (Entered: 04/10/2020)",
+      "date_entered": "2020-04-10"
+    },
+    {
+      "date_filed": "2020-04-15",
+      "document_number": null,
+      "pacer_doc_id": null,
+      "pacer_seq_no": null,
+      "description": "Minute Entry for proceedings held before Judge David S Morales: RE-ARRAIGNMENT held on 4/15/2020. Martin Arias-Hernandez (1) Guilty Count 1. Deft states he/she is ready to plea guilty today. Deft consents to entering guilty plea by video conference. Deft waives Indictment by Grand Jury. Court accepts the guilty plea. No plea agreement. The standard agreement was offered and explained to the deft, but the deft rejected the agreement. Deft wishes to waive the preparation of a PSR and proceed immediately to sentencing. Appearances:AUSA Y. Zheng; FPD Rachel Braver; USPO CC.(Digital # 2:41 - 3:10)(ERO:K. Papaioannou) (Interpreter: S. Buckley) Deft remanded to custody of USMS, filed.(arodriguez, 2) (Entered: 04/15/2020)",
+      "date_entered": "2020-04-15"
+    },
+    {
+      "date_filed": "2020-04-15",
+      "document_number": null,
+      "pacer_doc_id": null,
+      "pacer_seq_no": null,
+      "description": "Minute Entry for proceedings held before Judge David S Morales: Sentencing held on 4/15/2020 for Martin Arias-Hernandez (1), Count(s) 1, TIME SERVED; $100 Special Assessment (remitted). Deft requests to proceed without the preparation of a PSR. No objection from the Gvmt. The Court waives the requirement of the presentence investigation and adopts the findings in the worksheet as prepared by Probation. Deft is advised of his right to appeal his conviction and sentence. Appearances:AUSA Y. Zheng; FPD Rachel Braver; USPO CC.(Digital # 2:41 - 3:10)(ERO: K. Papaioannou) (Interpreter: S. Buckley) Deft remanded to custody of USMS, filed.(arodriguez, 2) (Entered: 04/15/2020)",
+      "date_entered": "2020-04-15"
+    },
+    {
+      "date_filed": "2020-04-17",
+      "document_number": "14",
+      "pacer_doc_id": "179035880890",
+      "pacer_seq_no": "69",
+      "description": "JUDGMENT as to Martin Arias-Hernandez ( Signed by Judge David S Morales) Parties notified. (MaraSalas, 2) (Entered: 04/17/2020)",
+      "date_entered": "2020-04-17"
+    },
+    {
+      "date_filed": "2020-04-17",
+      "document_number": "15",
+      "pacer_doc_id": "179035880907",
+      "pacer_seq_no": "72",
+      "description": "Statement of Reasons (Sealed) as to Martin Arias-Hernandez. NOTICE: Document available to applicable parties only. Authorized users enter CM/ECF Filer login and password first for authentication. Instructions available at http://www.txs.uscourts.gov/attorney-information - Electronic Access to Sealed Documents. Be sure to SAVE the document locally at the time of viewing, filed. (Entered: 04/17/2020)",
+      "date_entered": "2020-04-17"
+    }
+  ]
+}
\ No newline at end of file