Skip to content

Commit

Permalink
Merge pull request #104 from Andr3iC/ny
Browse files Browse the repository at this point in the history
Ny
  • Loading branch information
mlissner committed Oct 30, 2015
2 parents 6e5f21a + 7e2ff0d commit dffb5a4
Show file tree
Hide file tree
Showing 5 changed files with 739 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opinions/united_states/state/nyappterm_1st.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def _download(self, request_dict={}):
We use selenium to get the cookies, and then we check if we got the
correct page. If not we retry for a total of 11 times.
"""
if self.method == 'LOCAL':
return super(Site, self)._download(request_dict)

self.set_cookies()
logger.info("Using cookies: %s" % self.cookies)
request_dict.update({'cookies': self.cookies})
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ python-dateutil==1.5
requests==2.2.1
selenium==2.43.0
wsgiref==0.1.2
html5lib
248 changes: 248 additions & 0 deletions tests/examples/opinions/united_states/nyappterm_1st_example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,248 @@
<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
<title>LRB Search Results</title>
<script language="javascript">
function funcNewWindow(url) {
var x;
x = window.open(url, "newwin", "height=600, width=800, left=25, top=25, resizable, scrollbars=yes, status=1");
}
</script>

<script type="text/javascript" src="nyappterm_1st_example_files/validRequest.js"></script></head>

<body topmargin="0" leftmargin="0">
<form name="form">
<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
<tbody><tr>
<td align="center"><br>
<table border="0" align="center">
<tbody><tr>
<td align="right">&nbsp;</td>
<td><font color="#000099" face="arial" size="5">Slip Decisions Search Results</font></td>
</tr>
<tr>
<td colspan="2">
<table border="0">
<tbody><tr>
<td valign="top">
<table border="0" cellpadding="1" cellspacing="1">
<tbody><tr bgcolor="#e6e6e6">
<td><font face="arial" size="2"><b>Search Criteria</b></font></td>
</tr>
<tr>
<td><font face="arial" size="2"> &nbsp; &nbsp; Decision Start Date :</font><font color="#000099" face="arial" size="2"><b>
01/01/2005</b></font></td>
</tr>
<tr>
<td><font face="arial" size="2"> &nbsp; &nbsp; Decision End Date :</font><font color="#000099" face="arial" size="2"><b>
02/01/2005</b></font></td>
</tr>
<tr>
<td><font face="arial" size="2"> &nbsp; &nbsp; Court :</font><font color="#000099" face="arial" size="2"><b>
Appellate Term, 1st Dept</b></font></td>
</tr>

</tbody></table></td></tr></tbody></table>
<br>
<table border="0" cellpadding="1" cellspacing="1" width="100%">
<tbody><tr><td><font face="arial" size="2"><b>
Total number of records found: 19

</b>&nbsp; &nbsp;&nbsp; &nbsp;</font></td>
</tr>
<tr><td colspan="4" align="center"><input name="again" value="Search Again" onclick="history.back()" type="button"> <input name="cancel" value="Home Page" onclick="location.href='http://www.nycourts.gov/reporter/'" type="button"><br><br>
</td></tr>
<tr>
<td>
<table>
<tbody><tr bgcolor="#e6e6e6" valign="bottom">

<td><font face="arial" size="2"><b>Party Name</b></font></td>
<td><font face="arial" size="2"><b>Decision Date</b></font></td>
<td><font face="arial" size="2"><b>Court</b>&nbsp; &nbsp;</font></td>
<td><font face="arial" size="2"><b>Official Citation</b>&nbsp; &nbsp;</font></td>
<td><font face="arial" size="2"><b>Slip Number</b>&nbsp; &nbsp;</font></td>
<td><font face="arial" size="2"><b>Judge</b></font></td>
<td><font face="arial" size="2"><b>Opn/Mot</b></font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">3201-13 Park Realty LLC v Hernandez</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/07/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 127(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50004.htm')">2005&nbsp;NYSlipOp&nbsp;50004(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">500 Lincoln LLC v Tunnel Self-Stor., LLC</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/14/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50019.htm')">2005&nbsp;NYSlipOp&nbsp;50019(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Bickham v Ventura</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/06/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50001.htm')">2005&nbsp;NYSlipOp&nbsp;50001(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Condor Funding, LLC v Myers</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/12/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50014.htm')">2005&nbsp;NYSlipOp&nbsp;50014(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Equity League Pension Fund v Cavallo</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/14/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50020.htm')">2005&nbsp;NYSlipOp&nbsp;50020(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Gazivoda v Sherman</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/06/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 66</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_25000.htm')">2005&nbsp;NYSlipOp&nbsp;25000</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Gt Sys. Inc. v Jill Stuart Intl. Ltd.</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/14/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50021.htm')">2005&nbsp;NYSlipOp&nbsp;50021(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Lau v Berman</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/12/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50015.htm')">2005&nbsp;NYSlipOp&nbsp;50015(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Melnitzky v City of New York</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/06/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 78</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_25001.htm')">2005&nbsp;NYSlipOp&nbsp;25001</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Moore v Fed Ex</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/07/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50006.htm')">2005&nbsp;NYSlipOp&nbsp;50006(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">People v Alston (James)</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/06/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50000.htm')">2005&nbsp;NYSlipOp&nbsp;50000(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">People v Delarosa (Juan)</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/06/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50002.htm')">2005&nbsp;NYSlipOp&nbsp;50002(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">People v Hossack (Omar)</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/07/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 127(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50005.htm')">2005&nbsp;NYSlipOp&nbsp;50005(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Perez v Levine</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/26/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_25023.htm')">2005&nbsp;NYSlipOp&nbsp;Slip</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Perez v Levine</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/26/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">7 Misc 3d 29</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_25023.htm')">2005&nbsp;NYSlipOp&nbsp;25023</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">RGHF&amp;R Enters., Inc. v Stevens</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/07/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50007.htm')">2005&nbsp;NYSlipOp&nbsp;50007(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Rivera v Richardson</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/12/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50016.htm')">2005&nbsp;NYSlipOp&nbsp;50016(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Royal Terrace Assoc., LP v Jewish Assoc. for Servs. for the Aged</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/26/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 130(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50067.htm')">2005&nbsp;NYSlipOp&nbsp;50067(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>
<tr valign="top">
<td nowrap="nowrap" width="10%"><font face="arial" size="2">Tucker v Harvin</font></td>
<td nowrap="nowrap"><font face="arial" size="2">01/12/2005</font></td>
<td nowrap="nowrap"><font face="arial" size="2">Appellate Term, 1st Dept</font></td>
<td nowrap="nowrap"><font face="arial" size="2">6 Misc 3d 128(A)</font></td>
<td nowrap="nowrap"><font face="arial" size="2"><a href="javascript:funcNewWindow('http://www.nycourts.gov/reporter/3dseries/2005/2005_50017.htm')">2005&nbsp;NYSlipOp&nbsp;50017(U)</a></font></td>
<td nowrap="nowrap"><font face="arial" size="2"></font></td>
<td><font face="arial" size="2">Opinion</font></td>
</tr>


</tbody></table>
</td>
</tr></tbody></table>
</td></tr></tbody></table>



</td></tr></tbody></table></form></body></html>
Loading

0 comments on commit dffb5a4

Please sign in to comment.