Skip to content

Commit

Permalink
fix(ca10): Fix CA10
Browse files Browse the repository at this point in the history
Fixed CA10 and updated it to opinionsitelinear
  • Loading branch information
flooie committed Nov 14, 2023
1 parent 0a1d647 commit 8077401
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def _process_html(self):
{
"url": html.tostring(item.xpath("link")[0], method="text")
.decode()
.replace("\\n", "")
.strip(),
"name": item.xpath(".//title/text()")[0],
"date": formatted_date,
Expand Down
59 changes: 12 additions & 47 deletions tests/examples/opinions/united_states/ca10_example.compare.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,22 @@
[
{
"case_dates": "2021-11-12",
"case_names": "United States v. Etuk",
"download_urls": "https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110603775.pdf",
"precedential_statuses": "Unpublished",
"case_dates": "2023-11-14",
"case_names": "United States v. Taylor",
"download_urls": "https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110951897.pdf",
"precedential_statuses": "Published",
"blocked_statuses": false,
"date_filed_is_approximate": false,
"docket_numbers": "21-5062",
"lower_courts": "United States District Court for the Northern District of Oklahoma - Tulsa",
"case_name_shorts": "Etuk"
"docket_numbers": "22-6114",
"case_name_shorts": "Taylor"
},
{
"case_dates": "2021-11-12",
"case_names": "Powell v. Farris",
"download_urls": "https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110603745.pdf",
"precedential_statuses": "Unpublished",
"case_dates": "2023-11-14",
"case_names": "Duran v. Budaj",
"download_urls": "https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110951925.pdf",
"precedential_statuses": "Published",
"blocked_statuses": false,
"date_filed_is_approximate": false,
"docket_numbers": "21-6089",
"lower_courts": "United States District Court for the Western District of Oklahoma - Oklahoma City",
"case_name_shorts": "Powell"
},
{
"case_dates": "2021-11-12",
"case_names": "Ngo v. Garland",
"download_urls": "https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110603801.pdf",
"precedential_statuses": "Unpublished",
"blocked_statuses": false,
"date_filed_is_approximate": false,
"docket_numbers": "21-9517",
"lower_courts": "Board of Immigration Appeals",
"case_name_shorts": "Ngo"
},
{
"case_dates": "2021-11-12",
"case_names": "Grant v. Crow",
"download_urls": "https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110604402.pdf",
"precedential_statuses": "Unpublished",
"blocked_statuses": false,
"date_filed_is_approximate": false,
"docket_numbers": "21-6139",
"lower_courts": "United States District Court for the Western District of Oklahoma - Oklahoma City",
"case_name_shorts": "Grant"
},
{
"case_dates": "2021-11-12",
"case_names": "Blanco-Valdovinos v. Garland",
"download_urls": "https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110603734.pdf",
"precedential_statuses": "Unpublished",
"blocked_statuses": false,
"date_filed_is_approximate": false,
"docket_numbers": "21-9512",
"lower_courts": "Board of Immigration Appeals",
"case_name_shorts": "Blanco-Valdovinos"
"docket_numbers": "22-1365",
"case_name_shorts": "Duran"
}
]
55 changes: 1 addition & 54 deletions tests/examples/opinions/united_states/ca10_example.xml
Original file line number Diff line number Diff line change
@@ -1,54 +1 @@
<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.ca10.uscourts.gov/opinions-page" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
<channel>
<title>Tenth Circuit Daily Decisions</title>
<link>https://www.ca10.uscourts.gov/opinions-page</link>
<description>A feed of decisions posted by the United States Court of Appeals for the 10th Circuit</description>
<language>en</language>
<atom:link href="https://www.ca10.uscourts.gov/opinions/new/daily_decisions.rss" rel="self" type="application/rss+xml" />
<item>
<title>&lt;p&gt;Powell v. Farris&lt;/p&gt;
</title>
<link>https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110603745.pdf</link>
<description>Docket#: 21-6089 - Date Issued: Fri Nov 12 2021 - Unpublished Order and Judgment</description>
<pubDate>&lt;span class=&quot;date-display-single&quot; property=&quot;dc:date&quot; datatype=&quot;xsd:dateTime&quot; content=&quot;2021-11-12T00:00:00-07:00&quot;&gt;Fri Nov 12 2021&lt;/span&gt;</pubDate>
<dc:creator>United States District Court for the Western District of Oklahoma - Oklahoma City</dc:creator>
<guid isPermaLink="false">10871678</guid>
</item>
<item>
<title>&lt;p&gt;United States v. Etuk&lt;/p&gt;
</title>
<link>https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110603775.pdf</link>
<description>Docket#: 21-5062 - Date Issued: Fri Nov 12 2021 - Unpublished Order and Judgment</description>
<pubDate>&lt;span class=&quot;date-display-single&quot; property=&quot;dc:date&quot; datatype=&quot;xsd:dateTime&quot; content=&quot;2021-11-12T00:00:00-07:00&quot;&gt;Fri Nov 12 2021&lt;/span&gt;</pubDate>
<dc:creator>United States District Court for the Northern District of Oklahoma - Tulsa</dc:creator>
<guid isPermaLink="false">10871699</guid>
</item>
<item>
<title>&lt;p&gt;Ngo v. Garland&lt;/p&gt;
</title>
<link>https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110603801.pdf</link>
<description>Docket#: 21-9517 - Date Issued: Fri Nov 12 2021 - Unpublished Order and Judgment</description>
<pubDate>&lt;span class=&quot;date-display-single&quot; property=&quot;dc:date&quot; datatype=&quot;xsd:dateTime&quot; content=&quot;2021-11-12T00:00:00-07:00&quot;&gt;Fri Nov 12 2021&lt;/span&gt;</pubDate>
<dc:creator>Board of Immigration Appeals</dc:creator>
<guid isPermaLink="false">10871708</guid>
</item>
<item>
<title>&lt;p&gt;Blanco-Valdovinos, et al. v. Garland&lt;/p&gt;
</title>
<link>https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110603734.pdf</link>
<description>Docket#: 21-9512 - Date Issued: Fri Nov 12 2021 - Unpublished Order and Judgment</description>
<pubDate>&lt;span class=&quot;date-display-single&quot; property=&quot;dc:date&quot; datatype=&quot;xsd:dateTime&quot; content=&quot;2021-11-12T00:00:00-07:00&quot;&gt;Fri Nov 12 2021&lt;/span&gt;</pubDate>
<dc:creator>Board of Immigration Appeals</dc:creator>
<guid isPermaLink="false">10871674</guid>
</item>
<item>
<title>&lt;p&gt;Grant, et al. v. Crow, et al.&lt;/p&gt;
</title>
<link>https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110604402.pdf</link>
<description>Docket#: 21-6139 - Date Issued: Fri Nov 12 2021 - Unpublished Order and Judgment</description>
<pubDate>&lt;span class=&quot;date-display-single&quot; property=&quot;dc:date&quot; datatype=&quot;xsd:dateTime&quot; content=&quot;2021-11-12T00:00:00-07:00&quot;&gt;Fri Nov 12 2021&lt;/span&gt;</pubDate>
<dc:creator>United States District Court for the Western District of Oklahoma - Oklahoma City</dc:creator>
<guid isPermaLink="false">10871978</guid>
</item>
</channel>
</rss>
<rss version="2.0" xml:base="https://www.ca10.uscourts.gov/opinions-page" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">\n <channel>\n <title>Tenth Circuit Daily Decisions</title>\n <link>https://www.ca10.uscourts.gov/opinions-page\n <description>A feed of decisions posted by the United States Court of Appeals for the 10th Circuit</description>\n <language>en</language>\n <link href="https://www.ca10.uscourts.gov/opinions/new/daily_decisions.rss" rel="self" type="application/rss+xml">\n <item>\n <title>United States v. Taylor</title>\n <link>https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110951897.pdf\n <description>Docket#: 22-6114 - Date Issued: Tue Nov 14 2023 - Published Opinion</description>\n <pubdate>Tue, 14 Nov 2023 08:40:01 -0700</pubdate>\n <creator>United States District Court for the Western District of Oklahoma - Oklahoma City</creator>\n <guid ispermalink="false">11044335</guid>\n </item>\n <item>\n <title>Duran, et al. v. Budaj, et al.</title>\n <link>https://www.ca10.uscourts.gov/sites/ca10/files/opinions/010110951925.pdf\n <description>Docket#: 22-1365 - Date Issued: Tue Nov 14 2023 - Published Opinion</description>\n <pubdate>Tue, 14 Nov 2023 09:20:01 -0700</pubdate>\n <creator>United States District Court for the District of Colorado - Denver</creator>\n <guid ispermalink="false">11044352</guid>\n </item>\n </channel>\n</rss>

0 comments on commit 8077401

Please sign in to comment.