diff --git a/juriscraper/opinions/united_states/state/colo.py b/juriscraper/opinions/united_states/state/colo.py index 40d3db61f..b61ae1649 100644 --- a/juriscraper/opinions/united_states/state/colo.py +++ b/juriscraper/opinions/united_states/state/colo.py @@ -9,112 +9,155 @@ - 2023-01-05: Updated by WEP - 2023-11-19: Drop Selenium by WEP - 2023-12-20: Updated with citations, judges and summaries, Palin + - 2024-07-04: Update to new site, grossir """ -import datetime import re -from datetime import date, timedelta -from typing import Any, Dict +from datetime import date, datetime +from typing import Any, Dict, Tuple +from urllib.parse import urlencode -from dateutil import parser +from lxml import html +from juriscraper.AbstractSite import logger +from juriscraper.lib.date_utils import make_date_range_tuples from juriscraper.OpinionSiteLinear import OpinionSiteLinear class Site(OpinionSiteLinear): + base_url = "https://research.coloradojudicial.gov/search.json" + detail_url = "https://research.coloradojudicial.gov/vid/{}.json?include=abstract%2Cparent%2Cmeta%2Cformats%2Cchildren%2Cproperties_with_ids%2Clibrary%2Csource&fat=1&locale=en&hide_ct6=true&t={}" + days_interval = 30 + first_opinion_date = datetime(2010, 1, 1) + api_court_code = "14024_01" + def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.court_id = self.__module__ - self.status = "Published" - self.url = "https://www.courts.state.co.us/Courts/Supreme_Court/Proceedings/Index.cfm" - - def _process_html(self): - """""" - for row in self.html.xpath("//div[@id='Dispositions']/a"): - case_id = row.attrib["onclick"].split("'")[1] - div = row.xpath(f"//div[@id='Case_{case_id}']")[0] - if not div.xpath(".//a/text()"): - # This is set to avoid data decades back - continue - document_type = div.xpath(".//a/text()")[0] - if "Opinion" not in document_type: - # Only collect opinions and not orders - continue - summary = ( - row.xpath(f"//div[@id='Case_{case_id}']")[0] - .text_content() - .strip() - ) - url = div.xpath(".//a/@href")[0] - title = row.xpath("following-sibling::text()")[0].strip() - docket, name = title.split(" ", 1) - name, _ = name.split("  ") - if "(Honorable" in name: - name, judge = name.split("(") - name = name.strip() - judges = judge.strip(")").strip().replace("Honorable", "") + self.params = { + "product_id": "WW", + "jurisdiction": "US", + "content_type": "2", + "court": self.api_court_code, + "bypass_rabl": "true", + "include": "parent,abstract,snippet,properties_with_ids", + "per_page": "30", # Server breaks down when per_page=500, returns 503 + "page": "1", + "sort": "date", + "include_local_exclusive": "true", + "cbm": "6.0|361.0|5.0|9.0|4.0|2.0=0.01|400.0|1.0|0.001|1.5|0.2", + "locale": "en", + "hide_ct6": "true", + "t": str(datetime.now().timestamp())[:10], + "type": "document", + } + self.url = f"{self.base_url}?{urlencode(self.params)}" + + # Request won't work without some of these X- headers + self.request["headers"].update( + { + "X-Requested-With": "XMLHttpRequest", + "X-Root-Account-Email": "colorado@vlex.com", + "X-User-Email": "colorado@vlex.com", + "X-Webapp-Seed": "9887408", + } + ) + self.make_backscrape_iterable(kwargs) + + def _process_html(self) -> None: + search_json = self.html + logger.info( + "Number of results %s; %s in page", + search_json["count"], + len(search_json["results"]), + ) + + for result in search_json["results"]: + timestamp = str(datetime.now().timestamp())[:10] + url = self.detail_url.format(result["id"], timestamp) + + if self.test_mode_enabled(): + # we have manually nested detail JSONs to + # to be able to have a test file + detail_json = result["detail_json"] else: - judges = "" - date_filed = self.find_date(summary) - if parser.parse(date_filed).date() < self.set_min_date(): - # Only collect back 6 months - break - if "https://www.courts.state.co.us/" not in url: - url = f"https://www.courts.state.co.us/{url}" - self.cases.append( - { - "summary": summary, - "date": date_filed, - "name": name, - "docket": docket.strip(","), - "url": url, - "judge": judges, - } - ) - - def set_min_date(self): - """Set minimum date to add opinions - - :return: Date 6 months back - """ - if self.test_mode_enabled(): - today = datetime.date(2023, 11, 19) - return today - timedelta(180) - else: - return date.today() - timedelta(180) + # Full case name and docket number are only available + # on the detail page + self._request_url_get(url) + detail_json = self.request["response"].json() - def find_date(self, summary) -> str: - """Find date filed + # Example of parallel citation: + # https://research.coloradojudicial.gov/vid/907372624 + citation, parallel_citation = "", "" + for p in detail_json["properties"]: + label = p["property"]["label"] + if label == "Docket Number": + docket_number = p["values"][0] + if label == "Parties": + case_name_full = p["values"][0] + if label == "Decision Date": + # Note that json['published_at'] is not the date_filed + date_filed = p["values"][0] + if label == "Citation": + citation = p["values"][0] + if len(p["values"]) > 1: + parallel_citation = p["values"][1] - Normally it follows a typical pattern but not always + case = { + "date": date_filed, + "docket": docket_number, + "name": case_name_full, + "url": f"{detail_json['public_url']}/content", + "status": "Published" if citation else "Unknown", + "citation": citation, + "parallel_citation": parallel_citation, + } + + self.cases.append(case) + + def _download_backwards(self, dates: Tuple[date]) -> None: + """Make custom date range request - :param summary: Use summary text to find date filed - :return: date as string + :param dates: (start_date, end_date) tuple + :return None """ - if "Opinion issued" in summary: - return summary.split("Opinion issued")[1] - date_pattern = re.compile( - r"((January|February|March|April|May|June|July|August|September|October|November|December)\s+(\d{1,2})\s?,?\s+(\d{4}))" + start = dates[0].strftime("%Y-%m-%d") + end = dates[1].strftime("%Y-%m-%d") + timestamp = str(datetime.now().timestamp())[:10] + params = {**self.params} + params.update( + { + "date": f"{start}..{end}", + # These are duplicated by the frontend too + "locale": ["en", "en"], + "hide_ct6": ["true", "true"], + "t": [timestamp, timestamp], + } ) - match = re.findall(date_pattern, summary) - date_filed = match[-1][0] if match else "" - return date_filed + self.url = f"{self.base_url}?{urlencode(params)}" + self.html = self._download() + self._process_html() - def extract_from_text(self, scraped_text: str) -> Dict[str, Any]: - """Extract Citation from text + def make_backscrape_iterable(self, kwargs: dict) -> None: + """Checks if backscrape start and end arguments have been passed + by caller, and parses them accordingly - :param scraped_text: Text of scraped content - :return: date filed + :param kwargs: passed when initializing the scraper, may or + may not contain backscrape controlling arguments + :return None """ - m = re.findall(r"(20\d{2})\s(CO)\s(\d+A?)", scraped_text) - if m: - vol, reporter, page = m[0] - return { - "Citation": { - "volume": vol, - "reporter": reporter, - "page": page, - "type": 8, # NEUTRAL in courtlistener Citation model - }, - } - return {} + start = kwargs.get("backscrape_start") + end = kwargs.get("backscrape_end") + + if start: + start = datetime.strptime(start, "%m/%d/%Y") + else: + start = self.first_opinion_date + if end: + end = datetime.strptime(end, "%m/%d/%Y") + else: + end = datetime.now() + + self.back_scrape_iterable = make_date_range_tuples( + start, end, self.days_interval + ) diff --git a/juriscraper/opinions/united_states/state/coloctapp.py b/juriscraper/opinions/united_states/state/coloctapp.py index 597ceb736..dd962cac5 100644 --- a/juriscraper/opinions/united_states/state/coloctapp.py +++ b/juriscraper/opinions/united_states/state/coloctapp.py @@ -9,57 +9,9 @@ - 2023-11-19: Updated by William E. Palin """ -import datetime -import re +from juriscraper.opinions.united_states.state import colo -from juriscraper.OpinionSiteLinear import OpinionSiteLinear - -class Site(OpinionSiteLinear): - def __init__(self, *args, **kwargs): - super().__init__(*args, **kwargs) - self.court_id = self.__module__ - self.year = datetime.date.today().year - self.url = "https://www.courts.state.co.us/Courts/Court_of_Appeals/Case_Announcements/Index.cfm" - self.status = None - - def _process_html(self) -> None: - """Parses html into case dictionaries - - :return None - """ - if self.test_mode_enabled(): - self.year = "2023" - - date_xpath = ( - "//span[text()='Future Case Announcements']/following-sibling::p" - ) - date = self.html.xpath(date_xpath)[0].text_content() - - for row in self.html.xpath("//p"): - modified_string = re.sub(r"\s", "", row.text_content()) - if "PUBLISHED" == modified_string[:9]: - self.status = "Published" - continue - if "UNPUBLISHED" == modified_string[:11]: - self.status = None - continue - if not self.status: - continue - - pattern = re.compile(r"\b[0-9A-Z& ]{5,}\b") - matches = re.findall(pattern, row.text_content()) - if not matches: - continue - - docket = matches[0].strip() - name = row.text_content().replace(docket, "").strip() - self.cases.append( - { - "name": name, - "docket": docket, - "date": date, - "status": self.status, - "url": f"https://www.courts.state.co.us/Courts/Court_of_Appeals/Opinion/{self.year}/{docket}-PD.pdf", - } - ) +class Site(colo.Site): + api_court_code = "14024_02" + days_interval = 15 diff --git a/tests/examples/opinions/united_states/colo_example.compare.json b/tests/examples/opinions/united_states/colo_example.compare.json index 082f826fd..a431eab46 100644 --- a/tests/examples/opinions/united_states/colo_example.compare.json +++ b/tests/examples/opinions/united_states/colo_example.compare.json @@ -1,74 +1,26 @@ [ { - "case_dates": "2023-11-14", - "case_names": "in Re People in the Interest of Minor Children J.P.", - "download_urls": "https://www.courts.state.co.us//userfiles/file/Court_Probation/Supreme_Court/Opinions/2023/23SA126.pdf", + "case_dates": "2024-07-01", + "case_names": "Ricardo Castro v. The People of the State of Colorado", + "download_urls": "https://colorado.vlex.io/vid/castro-v-people-1042407550/content", "precedential_statuses": "Published", "blocked_statuses": false, "date_filed_is_approximate": false, - "docket_numbers": "23SA126", - "judges": "Justin Haenlein", - "summaries": "The petitioner seeks relief from the trial court's order of April 7, 2023. On May 18, 2023, the Supreme Court issued a rule to show cause why the trial court did not err in ordering the petitioner to turn over potentially privileged documents for in camera review. The respondents are directed to file a written answer on or before June 8, 2023. The petitioner has 14 days from receipt of the answer to reply. Opinion issued November 14, 2023", + "docket_numbers": "22SC712", + "citations": "2024 CO 56", + "parallel_citations": "", "case_name_shorts": "" }, { - "case_dates": "2023-10-23", - "case_names": "In Re: People v. Walthour, Ashleigh", - "download_urls": "https://www.courts.state.co.us//userfiles/file/Court_Probation/Supreme_Court/Opinions/2023/23SA125.pdf", - "precedential_statuses": "Published", - "blocked_statuses": false, - "date_filed_is_approximate": false, - "docket_numbers": "23SA125", - "judges": "Joshua Williford", - "summaries": "The petitioner seeks relief from the trial court's order of March 7, 2023. On May 12, 2023, the Supreme Court issued a rule to show cause why the trial court did not err in suppressing the results of an impending blood test because it hadn't been completed by the court's prior deadline. The respondents are directed to file a written answer on or before June 9, 2023. The petitioner has 21 days from receipt of the answer to reply. Opinion issued October 23, 2023", - "case_name_shorts": "" - }, - { - "case_dates": "2023-10-16", - "case_names": "In Re People v. Seymour, Gavin", - "download_urls": "https://www.courts.state.co.us//userfiles/file/Court_Probation/Supreme_Court/Opinions/2023/23SA12.pdf", - "precedential_statuses": "Published", - "blocked_statuses": false, - "date_filed_is_approximate": false, - "docket_numbers": "23SA12", - "judges": "Martin Egelhoff", - "summaries": "The petitioner seeks relief from the trial court's Order of November 16, 2022. On January 17, 2023, the Supreme Court issued a rule to show cause why the trial court did not err in denying the defendant's motion to suppress. The respondents are directed to file a written Answer on or before February 14, 2023. The petitioner has 21 days from receipt of the Answer within which to Reply. Opinion issued October 16, 2023", - "case_name_shorts": "" - }, - { - "case_dates": "2023-09-25", - "case_names": "In Re Edwards, Tana v. New Century Hospice", - "download_urls": "https://www.courts.state.co.us//userfiles/file/Court_Probation/Supreme_Court/Opinions/2023/23SA91.pdf", - "precedential_statuses": "Published", - "blocked_statuses": false, - "date_filed_is_approximate": false, - "docket_numbers": "23SA91", - "judges": "Mark Bailey", - "summaries": "The petitioners seek relief from the trial court's order of December 19, 2022. On April 3, 2023, the Supreme Court issued a rule to show cause why the trial court did not err in denying the defendants' motion for summary judgment on the plaintiff's claim for negligent supervision. The respondents are directed to file a written answer on or before May 1, 2023. The petitioners have 21 days from receipt of the answer within which to reply. Opinion issued September 25, 2023", - "case_name_shorts": "" - }, - { - "case_dates": "2023-06-20", - "case_names": "In Re Smith, Jerrelle v. People", - "download_urls": "https://www.courts.state.co.us//userfiles/file/Court_Probation/Supreme_Court/Opinions/2023/23SA2.pdf", - "precedential_statuses": "Published", - "blocked_statuses": false, - "date_filed_is_approximate": false, - "docket_numbers": "23SA2", - "judges": "Robert Kiesnowski", - "summaries": "On January 6, 2023, the Supreme Court issued a rule to show cause why the trial court did not err in denying bond to the defendant. The respondents are directed to file a written answer on or before February 3, 2023. The petitioner has 21 days from receipt of the answer within which to reply. Opinion issued 6/20/23", - "case_name_shorts": "" - }, - { - "case_dates": "2023-06-05", - "case_names": "In Re People v. Kelley, Noelle", - "download_urls": "https://www.courts.state.co.us//userfiles/file/Court_Probation/Supreme_Court/Opinions/2022/22SA874.pdf", - "precedential_statuses": "Published", + "case_dates": "2024-07-01", + "case_names": "In re the Marriage of Elyssa M. Fox, and Alexander L. Speaker", + "download_urls": "https://colorado.vlex.io/vid/in-re-marriage-of-1042461692/content", + "precedential_statuses": "Unknown", "blocked_statuses": false, "date_filed_is_approximate": false, - "docket_numbers": "22SA874", - "judges": "Eric White", - "summaries": "The petitioner seeks relief from the trial court's order of November 23, 2022. On December 5, 2022, the Supreme Court issued a rule to show cause why the trial court did not err in (1) permitting the prosecution to present evidence that the defendant refused to waive her privilege, and (2) ruling that the defendant waived her privilege. The respondents are directed to file a written answer on or before January 3, 2023. The petitioner has 21 days from receipt of the answer within which to reply.t Opinion issued on June 5, 2023", + "docket_numbers": "24SC76", + "citations": "", + "parallel_citations": "", "case_name_shorts": "" } ] \ No newline at end of file diff --git a/tests/examples/opinions/united_states/colo_example.html b/tests/examples/opinions/united_states/colo_example.html deleted file mode 100644 index 08719bac0..000000000 --- a/tests/examples/opinions/united_states/colo_example.html +++ /dev/null @@ -1,4979 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Colorado Judicial Branch - Courts - Supreme Court - Original Proceedings - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Skip to main content - - - -
New Judicial Website coming! Click here to read about this exciting news!
-
-
- -
- - -
-
- -
- -
- -
- -
- - - - - - -
-
- - - - Home - - - Courts - Supreme Court - Original Proceedings - - - -
- -
-
- - - - - Home - - - - Courts - Supreme Court - Original Proceedings - - - -
- - - - - - - - -
Original Proceedings Pursuant to C.A.R. 21 in the Colorado Supreme Court
-
- Click on the plus icon to see the full summary of a particular case. -

-
-
- -
- -
- -
- The Colorado Supreme Court has issued a Rule to Show Cause in the cases listed below. These cases are currently pending in the Court. -

- - Case details for 23SA289 In Re: People v. Mobley  (Honorable Victor Zerbi) - 23SA289 In Re: People v. Mobley (Honorable Victor Zerbi)
- - - Case details for 23SA273 In Re People v. Maes, Carlos (Honorable Darren Vahle) - 23SA273 In Re People v. Maes, Carlos (Honorable Darren Vahle)
- - - Case details for 23SA271 In Re People v. Honstein, Harold (Honorable Elizabeth Brodsky - 23SA271 In Re People v. Honstein, Harold (Honorable Elizabeth Brodsky
- - - Case details for 23SA227 In Re People v. Howell, Joseph (Honorable Adam Espinosa) - 23SA227 In Re People v. Howell, Joseph (Honorable Adam Espinosa)
- - - Case details for 23SA220 In Re People v. Phillips, Khristina (Honorable Steven Katzman) - 23SA220 In Re People v. Phillips, Khristina (Honorable Steven Katzman)
- - - Case details for 23SA209 In Re: People v. Mark Burns (Honorable Steven Schultz) - 23SA209 In Re: People v. Mark Burns (Honorable Steven Schultz)
- - - Case details for 23SA186  In Re: Michael Miller v. Crested Butte, LLC (Honorable Sean Finn) - 23SA186 In Re: Michael Miller v. Crested Butte, LLC (Honorable Sean Finn)
- - - Case details for 23SA167 - In Re the Marriage of Green, Barbara and Green, Jeffry - (Honorable Christine Antoun) - 23SA167 - In Re the Marriage of Green, Barbara and Green, Jeffry - (Honorable Christine Antoun)
- - - Case details for 23SA146 In Re GHP Horwarth, P.C. v. Kazazian, Nina - 23SA146 In Re GHP Horwarth, P.C. v. Kazazian, Nina
- - - Case details for 23SA140, In Re: People v. James Dye (Honorable Marcelo Kopcow) - 23SA140, In Re: People v. James Dye (Honorable Marcelo Kopcow)
- - - Case details for 23SA131 In Re People in the interest of Minor Child C.J.T. (Honorable Charles Hobbs) - 23SA131 In Re People in the interest of Minor Child C.J.T. (Honorable Charles Hobbs)
- - - Case details for 23SA133, In Re: Antero Treatment v. Veolia Water (Honorable Martin Egelhoff & Honorable Marie Moses) - 23SA133, In Re: Antero Treatment v. Veolia Water (Honorable Martin Egelhoff & Honorable Marie Moses)
- - - Case details for 23SA111 In Re: People v. Tippet, Joseph (Honorable Michael Meyrick) - 23SA111 In Re: People v. Tippet, Joseph (Honorable Michael Meyrick)
- - -
- - - - -
-
- - - - - - - - -
Court Proceedings
- Supreme Court Homepage
- Case Announcements
- Oral Arguments
- Ballot Initiatives -
- -
-
-
-
- - -
- - - - important announcement - - - - - Transparency Online -   •   - Contact Us -   •   - Interpreters -   •   - FAQ -   •   - Photos -   •   - Holidays - - - - Menu - - Important Announcement - - Home - Search - Courts - Probation - Jury - Self Help ⁄ Forms - Careers - Media - Administration - Contact us - Interpreters - FAQ - Photo Gallery - Holiday Schedule - -
1a
- - - - - - diff --git a/tests/examples/opinions/united_states/colo_example.json b/tests/examples/opinions/united_states/colo_example.json new file mode 100644 index 000000000..b34c4c145 --- /dev/null +++ b/tests/examples/opinions/united_states/colo_example.json @@ -0,0 +1,459 @@ +{ + "provider": "content-api", + "count": 30227, + "results": [ + { + "id": 1042461692, + "type": "document", + "properties": [ + { + "property": { + "id": "k06opofdgweyj", + "label": "Court" + }, + "values": [ + "Colorado Supreme Court" + ] + }, + { + "property": { + "id": "p08", + "label": "Date" + }, + "values": [ + "July 01, 2024" + ] + } + ], + "title": "In re Marriage of Fox", + "country": { + "id": "US", + "label": "Estados Unidos" + }, + "detail_json": { + "parent": { + "id": 1695583, + "type": null, + "parent": { + "id": 14024, + "type": "source", + "title": "Colorado", + "public_url": "http://case-law.vlex.com/source/14024", + "copyright": null, + "title.en": "CO", + "meta": null, + "frontpage_image": null, + "frontpage_image_highres": null, + "jurisdiction_id": "US", + "unpublished_source": false + }, + "title": "Colorado Supreme Court", + "subtitle": null, + "alternative_key": "desc1_14024_01", + "public_url": "https://case-law.vlex.com/source/14024/chapter/colorado-supreme-court-1695583", + "meta": { + "children": "/v1/chapters/1695583/children.json" + }, + "client_url": "/search/jurisdiction:US+content_type:2+source:14024+emisor_1:01/*" + }, + "id": 1042461692, + "type": "document", + "published_at": "2024-07-03", + "slug": "in-re-marriage-of", + "title": "In re Marriage of Fox", + "counters": { + "cited_in": { + "negative": 0, + "positive": 0, + "neutral": 0, + "total": 0 + }, + "cited_authorities": 0, + "versions": false, + "amendments": 0 + }, + "is_consolidated_text": false, + "history_and_versions": null, + "expressions": [ + { + "vid": 1042461692, + "label": "Document", + "citedAs": null, + "contentAvailable": true, + "isAuthorized": true, + "tabConfig": { + "title": "Tab", + "type": "tab" + }, + "type": null, + "kindOf": [] + } + ], + "followable": false, + "reliable_lang": "en", + "public_url": "https://colorado.vlex.io/vid/in-re-marriage-of-1042461692", + "doc_date": "2024-07-01", + "country": { + "id": "US", + "language": "EN", + "name": "United States" + }, + "translatable": true, + "iceberg_record_info": { + "iceberg_record_id": "r06sg1sk0947cna", + "iceberg_record_owner": "ICBG", + "iceberg_organization_id": "oupqvi" + }, + "children": [], + "formats": [ + { + "mime_type": "application/pdf", + "show_inline": false, + "url": "pdf/1042461692", + "original": false, + "label": "Document", + "isAuthorized": true + }, + { + "mime_type": "application/docx", + "url": "docx/1042461692", + "original": false, + "label": "Document", + "isAuthorized": true + } + ], + "has_plain_text": true, + "properties": [ + { + "property": { + "id": "p06oq53ny752l", + "label": "Docket Number" + }, + "values": [ + "24SC76" + ] + }, + { + "property": { + "id": "p06qozl99eoi12p", + "label": "Decision Date" + }, + "values": [ + "01 July 2024" + ] + }, + { + "property": { + "id": "k06p7opb445qoof", + "label": "Parties" + }, + "values": [ + "In re the Marriage of Elyssa M. Fox, Petitioner and Alexander L. Speaker, Respondent" + ] + }, + { + "property": { + "id": "k06opofdgweyj", + "label": "Court" + }, + "values": [ + "Colorado Supreme Court" + ] + } + ], + "library": { + "id": 14, + "title": "Case Law", + "public_url": "http://case-law.vlex.com", + "type": "library", + "video_library": false, + "library_type": { + "id": 2, + "content_type": "Jurisprudencia" + }, + "meta": { + "children": "/v1/libraries/14/children.json" + }, + "country": { + "id": "US", + "language": "EN" + } + }, + "abstract_is_analysis": false, + "abstract": null, + "meta": { + "vincent": "/v1/vincent/vid_analysis/1042461692" + }, + "source": { + "id": 14024, + "type": "source", + "title": "Colorado", + "public_url": "http://case-law.vlex.com/source/14024", + "copyright": null, + "title.en": "CO", + "meta": null, + "frontpage_image": null, + "frontpage_image_highres": null, + "jurisdiction_id": "US", + "unpublished_source": false, + "search_scope": "jurisdiction:US+content_type:2+source:14024", + "isbn": null, + "peer_reviewed": null, + "description": null, + "warning": null, + "full_coverage_from": null, + "source_description": null, + "first_record_at": "1864-01-01", + "last_record_at": "2024-07-01", + "content_type": "Jurisprudencia", + "video_source": false, + "date": "2020-11-12", + "country": { + "id": "US", + "language": "EN" + }, + "language": "en", + "alternate_languages": [], + "publisher": null + } + } + }, + { + "id": 1042407550, + "type": "document", + "properties": [ + { + "property": { + "id": "k06opofdgweyj", + "label": "Court" + }, + "values": [ + "Colorado Supreme Court" + ] + }, + { + "property": { + "id": "p08", + "label": "Date" + }, + "values": [ + "July 01, 2024" + ] + }, + { + "property": { + "id": "pCitations", + "label": "Citations" + }, + "values": [ + { + "value": "2024 CO 56" + } + ] + } + ], + "title": "Castro v. People", + "country": { + "id": "US", + "label": "Estados Unidos" + }, + "detail_json": { + "parent": { + "id": 1695583, + "type": null, + "parent": { + "id": 14024, + "type": "source", + "title": "Colorado", + "public_url": "http://case-law.vlex.com/source/14024", + "copyright": null, + "title.en": "CO", + "meta": null, + "frontpage_image": null, + "frontpage_image_highres": null, + "jurisdiction_id": "US", + "unpublished_source": false + }, + "title": "Colorado Supreme Court", + "subtitle": null, + "alternative_key": "desc1_14024_01", + "public_url": "https://case-law.vlex.com/source/14024/chapter/colorado-supreme-court-1695583", + "meta": { + "children": "/v1/chapters/1695583/children.json" + }, + "client_url": "/search/jurisdiction:US+content_type:2+source:14024+emisor_1:01/*" + }, + "id": 1042407550, + "type": "document", + "published_at": "2024-07-02", + "slug": "castro-v-people", + "title": "Castro v. People", + "counters": { + "cited_in": { + "negative": 0, + "positive": 0, + "neutral": 0, + "total": 0 + }, + "cited_authorities": 0, + "versions": false, + "amendments": 0 + }, + "is_consolidated_text": false, + "history_and_versions": null, + "expressions": [ + { + "vid": 1042407550, + "label": "Document", + "citedAs": null, + "contentAvailable": true, + "isAuthorized": true, + "tabConfig": { + "title": "Tab", + "type": "tab" + }, + "type": null, + "kindOf": [] + } + ], + "followable": false, + "reliable_lang": "en", + "public_url": "https://colorado.vlex.io/vid/castro-v-people-1042407550", + "doc_date": "2024-07-01", + "country": { + "id": "US", + "language": "EN", + "name": "United States" + }, + "translatable": true, + "iceberg_record_info": { + "iceberg_record_id": "r06sfzxa6789qby", + "iceberg_record_owner": "ICBG", + "iceberg_organization_id": "oupqvi" + }, + "children": [], + "formats": [ + { + "mime_type": "application/pdf", + "show_inline": false, + "url": "pdf/1042407550", + "original": false, + "label": "Document", + "isAuthorized": true + }, + { + "mime_type": "application/docx", + "url": "docx/1042407550", + "original": false, + "label": "Document", + "isAuthorized": true + } + ], + "has_plain_text": true, + "properties": [ + { + "property": { + "id": "p06oq53ny752l", + "label": "Docket Number" + }, + "values": [ + "22SC712" + ] + }, + { + "property": { + "id": "p06qozl99eoi12p", + "label": "Decision Date" + }, + "values": [ + "01 July 2024" + ] + }, + { + "property": { + "id": "p06opolc4wf8y", + "label": "Citation" + }, + "values": [ + "2024 CO 56" + ] + }, + { + "property": { + "id": "k06p7opb445qoof", + "label": "Parties" + }, + "values": [ + "Ricardo Castro, Petitioner v. The People of the State of Colorado, Respondent" + ] + }, + { + "property": { + "id": "k06opofdgweyj", + "label": "Court" + }, + "values": [ + "Colorado Supreme Court" + ] + } + ], + "library": { + "id": 14, + "title": "Case Law", + "public_url": "http://case-law.vlex.com", + "type": "library", + "video_library": false, + "library_type": { + "id": 2, + "content_type": "Jurisprudencia" + }, + "meta": { + "children": "/v1/libraries/14/children.json" + }, + "country": { + "id": "US", + "language": "EN" + } + }, + "abstract_is_analysis": false, + "abstract": null, + "meta": { + "vincent": "/v1/vincent/vid_analysis/1042407550" + }, + "source": { + "id": 14024, + "type": "source", + "title": "Colorado", + "public_url": "http://case-law.vlex.com/source/14024", + "copyright": null, + "title.en": "CO", + "meta": null, + "frontpage_image": null, + "frontpage_image_highres": null, + "jurisdiction_id": "US", + "unpublished_source": false, + "search_scope": "jurisdiction:US+content_type:2+source:14024", + "isbn": null, + "peer_reviewed": null, + "description": null, + "warning": null, + "full_coverage_from": null, + "source_description": null, + "first_record_at": "1864-01-01", + "last_record_at": "2024-07-01", + "content_type": "Jurisprudencia", + "video_source": false, + "date": "2020-11-12", + "country": { + "id": "US", + "language": "EN" + }, + "language": "en", + "alternate_languages": [], + "publisher": null + } + } + } + ], + "properties": [] +} \ No newline at end of file diff --git a/tests/examples/opinions/united_states/coloctapp_example.compare.json b/tests/examples/opinions/united_states/coloctapp_example.compare.json index a5997d6e1..eeb64b576 100644 --- a/tests/examples/opinions/united_states/coloctapp_example.compare.json +++ b/tests/examples/opinions/united_states/coloctapp_example.compare.json @@ -1,22 +1,26 @@ [ { - "case_dates": "2023-11-16", - "case_names": "Samuel Perez v. By the Rockies, LLC", - "download_urls": "https://www.courts.state.co.us/Courts/Court_of_Appeals/Opinion/2023/22CA1791-PD.pdf", - "precedential_statuses": "Published", + "case_dates": "2024-05-16", + "case_names": "The People of the State of Colorado, In the Interest of T.C., Jr., a Child, and Concerning L.N.P. and T.C.", + "download_urls": "https://colorado.vlex.io/vid/people-ex-rel-t-1035297640/content", + "precedential_statuses": "Unknown", "blocked_statuses": false, "date_filed_is_approximate": false, - "docket_numbers": "22CA1791", + "docket_numbers": "23CA1539", + "citations": "", + "parallel_citations": "", "case_name_shorts": "" }, { - "case_dates": "2023-11-16", - "case_names": "Chance Gresser v. Banner Health", - "download_urls": "https://www.courts.state.co.us/Courts/Court_of_Appeals/Opinion/2023/22CA1502-PD.pdf", + "case_dates": "2024-05-16", + "case_names": "Andrew Ortiz v. Progressive Direct Insurance Company", + "download_urls": "https://colorado.vlex.io/vid/ortiz-v-progressive-direct-1035272272/content", "precedential_statuses": "Published", "blocked_statuses": false, "date_filed_is_approximate": false, - "docket_numbers": "22CA1502", + "docket_numbers": "23CA0292", + "citations": "2024 COA 54", + "parallel_citations": "", "case_name_shorts": "" } ] \ No newline at end of file diff --git a/tests/examples/opinions/united_states/coloctapp_example.html b/tests/examples/opinions/united_states/coloctapp_example.html deleted file mode 100644 index ca23eda2d..000000000 --- a/tests/examples/opinions/united_states/coloctapp_example.html +++ /dev/null @@ -1,749 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Colorado Judicial Branch - Courts - Court of Appeals - Case Announcements - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Skip to main content - - - -
New Judicial Website coming! Click here to read about this exciting news!
-
-
- -
- - -
-
- -
- -
- -
- -
- - - - - - -
-
- - - - Home - - - Courts - Court of Appeals - Case Announcements - - - -
- -
-
- - - - - Home - - - - Courts - Court of Appeals - Case Announcements - - - -
- - - Court of Appeals Case Announcements
- - Future Case Announcements -
- -

November 16, 2023

- -

P U B L I S H E D  O P I N I O N S

- -

22CA1502 Chance Gresser v. Banner Health

- -

22CA1791 Samuel Perez v. By the Rockies, LLC

- -

U N P U B L I S H E D  O P I N I O N S

- -

19CA2317 People v. Isaac David Davis

- -

21CA0741 People v. Eric Patrick Brandt

- -

21CA1061 People v. Sheri Lynn Espinoza

- -

21CA2068 People v. Jamale D. Townsell

- -

22CA0533 People v. Russell Edward Blair

- -

22CA1413 People v. Harley David Sharp

- -

22CA1457 People v. Daniel Keith Duffield

- -

22CA1473 & 22CA1984 Jimmy Guire II v. Western Fuels-Colorado LLC

- -

22CA1710 Marriage of Pittman

- -

22CA1783 People v. Sierra Suzanne Pantoja

- -

22CA1796 People v. Delano M. Medina

- -

22CA1839 Marriage of Stephens

- -

22CA1844 Parental Responsibilities Concerning J.B.H., a Child

- -

22CA1896 Stefan Sladek v. Division of Motor Vehicles

- -

22CA2010 Ramon Baca v. Walgreen Company

- -

22CA2117 People v Evan Michael Platteel

- -

22CA2175 Marriage of Minks

- -

23CA0051 Safeway, Inc. v. Industrial Claim Appeals Office

- -

23CA0156 Michael D. Farrow v. Vickie Nira

- -

23CA0322 Carlos R. Hull v. Industrial Claim Appeals Office

- -

23CA0347 People v. Juan Lorenzo Johnson

- -

23CA0532 People v. Freddy Anthony Aguilera-Zamora 

- -

23CA0717 People In Interest of E.L., Jr., and A.L., Children

- -

23CA1619 People In Interest of C.D.M.

- -

- - Past Case Announcements for the Court of Appeals

- -
- - -
- -

-
- - -
- - -

-
-
- - -

- -
- - - - - - - November 16, 2023 - - - - November 09, 2023 - - - - November 02, 2023 - - - - October 26, 2023 - - - - October 19, 2023 - - - - October 12, 2023 - - - - October 05, 2023 - - - - September 28, 2023 - - - - September 21, 2023 - - - - September 14, 2023 - - - - September 07, 2023 - - - - August 31, 2023 - - - - August 24, 2023 - - - - August 17, 2023 - - - - August 10, 2023 - - - - August 03, 2023 - - - - July 27, 2023 - - - - July 20, 2023 - - - - July 13, 2023 - - - - July 06, 2023 - - - - June 29, 2023 - - - - June 22, 2023 - - - - June 15, 2023 - - - - June 08, 2023 - - - - June 01, 2023 - - - - May 25, 2023 - - - - May 18, 2023 - - - - May 11, 2023 - - - - May 04, 2023 - - - - April 27, 2023 - - - - April 20, 2023 - - - - April 13, 2023 - - - - April 06, 2023 - - - - March 30, 2023 - - - - March 23, 2023 - - - - March 16, 2023 - - - - March 09, 2023 - - - - March 02, 2023 - - - - February 23, 2023 - - - - February 16, 2023 - - - - February 09, 2023 - - - - February 02, 2023 - - - - January 26, 2023 - - - - January 19, 2023 - - - - January 12, 2023 - - - - January 05, 2023 - - - - - -
-
- - - Can't Find It?
- - Search Case Announcements - and Published Opinions

- - -
- Please note: All Court of Appeals' case numbers must contain 4 digits after the year and case class. (i.e. 08CA_ _ _ _)
Use leading zeros in cases with less than 4 digits. (i.e. 08CA0255) - -

- - Unpublished Opinions
- Online request form -

- - Court Proceedings
- - Court of Appeals Homepage
- Live and Archived Oral Argument Videos
- Oral Arguments
- - -
-
-
-
- - -
- - - - important announcement - - - - - Transparency Online -   •   - Contact Us -   •   - Interpreters -   •   - FAQ -   •   - Photos -   •   - Holidays - - - - Menu - - Important Announcement - - Home - Search - Courts - Probation - Jury - Self Help ⁄ Forms - Careers - Media - Administration - Contact us - Interpreters - FAQ - Photo Gallery - Holiday Schedule - -
1a
- - - - - - \ No newline at end of file diff --git a/tests/examples/opinions/united_states/coloctapp_example.json b/tests/examples/opinions/united_states/coloctapp_example.json new file mode 100644 index 000000000..401c16d9c --- /dev/null +++ b/tests/examples/opinions/united_states/coloctapp_example.json @@ -0,0 +1,459 @@ +{ + "provider": "content-api", + "count": 64838, + "results": [ + { + "id": 1035297640, + "type": "document", + "properties": [ + { + "property": { + "id": "k06opofdgweyj", + "label": "Court" + }, + "values": [ + "Colorado Court of Appeals" + ] + }, + { + "property": { + "id": "p08", + "label": "Date" + }, + "values": [ + "May 16, 2024" + ] + } + ], + "title": "People ex rel. T.C.", + "country": { + "id": "US", + "label": "Estados Unidos" + }, + "detail_json": { + "parent": { + "id": 1695584, + "type": null, + "parent": { + "id": 14024, + "type": "source", + "title": "Colorado", + "public_url": "http://case-law.vlex.com/source/14024", + "copyright": null, + "title.en": "CO", + "meta": null, + "frontpage_image": null, + "frontpage_image_highres": null, + "jurisdiction_id": "US", + "unpublished_source": false + }, + "title": "Colorado Court of Appeals", + "subtitle": null, + "alternative_key": "desc1_14024_02", + "public_url": "https://case-law.vlex.com/source/14024/chapter/colorado-court-of-appeals-1695584", + "meta": { + "children": "/v1/chapters/1695584/children.json" + }, + "client_url": "/search/jurisdiction:US+content_type:2+source:14024+emisor_1:02/*" + }, + "id": 1035297640, + "type": "document", + "published_at": "2024-05-18", + "slug": "people-ex-rel-t", + "title": "People ex rel. T.C.", + "counters": { + "cited_in": { + "negative": 0, + "positive": 0, + "neutral": 0, + "total": 0 + }, + "cited_authorities": 0, + "versions": false, + "amendments": 0 + }, + "is_consolidated_text": false, + "history_and_versions": null, + "expressions": [ + { + "vid": 1035297640, + "label": "Document", + "citedAs": null, + "contentAvailable": true, + "isAuthorized": true, + "tabConfig": { + "title": "Tab", + "type": "tab" + }, + "type": null, + "kindOf": [] + } + ], + "followable": false, + "reliable_lang": "en", + "public_url": "https://colorado.vlex.io/vid/people-ex-rel-t-1035297640", + "doc_date": "2024-05-16", + "country": { + "id": "US", + "language": "EN", + "name": "United States" + }, + "translatable": true, + "iceberg_record_info": { + "iceberg_record_id": "r06sdmzibb44y0", + "iceberg_record_owner": "ICBG", + "iceberg_organization_id": "oupqvi" + }, + "children": [], + "formats": [ + { + "mime_type": "application/pdf", + "show_inline": false, + "url": "pdf/1035297640", + "original": false, + "label": "Document", + "isAuthorized": true + }, + { + "mime_type": "application/docx", + "url": "docx/1035297640", + "original": false, + "label": "Document", + "isAuthorized": true + } + ], + "has_plain_text": true, + "properties": [ + { + "property": { + "id": "p06oq53ny752l", + "label": "Docket Number" + }, + "values": [ + "23CA1539" + ] + }, + { + "property": { + "id": "p06qozl99eoi12p", + "label": "Decision Date" + }, + "values": [ + "16 May 2024" + ] + }, + { + "property": { + "id": "k06p7opb445qoof", + "label": "Parties" + }, + "values": [ + "The People of the State of Colorado, Appellee, In the Interest of T.C., Jr., a Child, and Concerning L.N.P. and T.C., Appellants." + ] + }, + { + "property": { + "id": "k06opofdgweyj", + "label": "Court" + }, + "values": [ + "Colorado Court of Appeals" + ] + } + ], + "library": { + "id": 14, + "title": "Case Law", + "public_url": "http://case-law.vlex.com", + "type": "library", + "video_library": false, + "library_type": { + "id": 2, + "content_type": "Jurisprudencia" + }, + "meta": { + "children": "/v1/libraries/14/children.json" + }, + "country": { + "id": "US", + "language": "EN" + } + }, + "abstract_is_analysis": false, + "abstract": null, + "meta": { + "vincent": "/v1/vincent/vid_analysis/1035297640" + }, + "source": { + "id": 14024, + "type": "source", + "title": "Colorado", + "public_url": "http://case-law.vlex.com/source/14024", + "copyright": null, + "title.en": "CO", + "meta": null, + "frontpage_image": null, + "frontpage_image_highres": null, + "jurisdiction_id": "US", + "unpublished_source": false, + "search_scope": "jurisdiction:US+content_type:2+source:14024", + "isbn": null, + "peer_reviewed": null, + "description": null, + "warning": null, + "full_coverage_from": null, + "source_description": null, + "first_record_at": "1864-01-01", + "last_record_at": "2024-07-01", + "content_type": "Jurisprudencia", + "video_source": false, + "date": "2020-11-12", + "country": { + "id": "US", + "language": "EN" + }, + "language": "en", + "alternate_languages": [], + "publisher": null + } + } + }, + { + "id": 1035272272, + "type": "document", + "properties": [ + { + "property": { + "id": "k06opofdgweyj", + "label": "Court" + }, + "values": [ + "Colorado Court of Appeals" + ] + }, + { + "property": { + "id": "p08", + "label": "Date" + }, + "values": [ + "May 16, 2024" + ] + }, + { + "property": { + "id": "pCitations", + "label": "Citations" + }, + "values": [ + { + "value": "2024 COA 54" + } + ] + } + ], + "title": "Ortiz v. Progressive Direct Ins. Co.", + "country": { + "id": "US", + "label": "Estados Unidos" + }, + "detail_json": { + "parent": { + "id": 1695584, + "type": null, + "parent": { + "id": 14024, + "type": "source", + "title": "Colorado", + "public_url": "http://case-law.vlex.com/source/14024", + "copyright": null, + "title.en": "CO", + "meta": null, + "frontpage_image": null, + "frontpage_image_highres": null, + "jurisdiction_id": "US", + "unpublished_source": false + }, + "title": "Colorado Court of Appeals", + "subtitle": null, + "alternative_key": "desc1_14024_02", + "public_url": "https://case-law.vlex.com/source/14024/chapter/colorado-court-of-appeals-1695584", + "meta": { + "children": "/v1/chapters/1695584/children.json" + }, + "client_url": "/search/jurisdiction:US+content_type:2+source:14024+emisor_1:02/*" + }, + "id": 1035272272, + "type": "document", + "published_at": "2024-05-17", + "slug": "ortiz-v-progressive-direct", + "title": "Ortiz v. Progressive Direct Ins. Co.", + "counters": { + "cited_in": { + "negative": 0, + "positive": 0, + "neutral": 0, + "total": 0 + }, + "cited_authorities": 8, + "versions": false, + "amendments": 0 + }, + "is_consolidated_text": false, + "history_and_versions": null, + "expressions": [ + { + "vid": 1035272272, + "label": "Document", + "citedAs": null, + "contentAvailable": true, + "isAuthorized": true, + "tabConfig": { + "title": "Tab", + "type": "tab" + }, + "type": null, + "kindOf": [] + } + ], + "followable": false, + "reliable_lang": "en", + "public_url": "https://colorado.vlex.io/vid/ortiz-v-progressive-direct-1035272272", + "doc_date": "2024-05-16", + "country": { + "id": "US", + "language": "EN", + "name": "United States" + }, + "translatable": true, + "iceberg_record_info": { + "iceberg_record_id": "r06sdmzox9ni90f", + "iceberg_record_owner": "ICBG", + "iceberg_organization_id": "oupqvi" + }, + "children": [], + "formats": [ + { + "mime_type": "application/pdf", + "show_inline": false, + "url": "pdf/1035272272", + "original": false, + "label": "Document", + "isAuthorized": true + }, + { + "mime_type": "application/docx", + "url": "docx/1035272272", + "original": false, + "label": "Document", + "isAuthorized": true + } + ], + "has_plain_text": true, + "properties": [ + { + "property": { + "id": "p06oq53ny752l", + "label": "Docket Number" + }, + "values": [ + "23CA0292" + ] + }, + { + "property": { + "id": "p06qozl99eoi12p", + "label": "Decision Date" + }, + "values": [ + "16 May 2024" + ] + }, + { + "property": { + "id": "p06opolc4wf8y", + "label": "Citation" + }, + "values": [ + "2024 COA 54" + ] + }, + { + "property": { + "id": "k06p7opb445qoof", + "label": "Parties" + }, + "values": [ + "Andrew Ortiz, Plaintiff-Appellee, v. Progressive Direct Insurance Company, Defendant-Appellant." + ] + }, + { + "property": { + "id": "k06opofdgweyj", + "label": "Court" + }, + "values": [ + "Colorado Court of Appeals" + ] + } + ], + "library": { + "id": 14, + "title": "Case Law", + "public_url": "http://case-law.vlex.com", + "type": "library", + "video_library": false, + "library_type": { + "id": 2, + "content_type": "Jurisprudencia" + }, + "meta": { + "children": "/v1/libraries/14/children.json" + }, + "country": { + "id": "US", + "language": "EN" + } + }, + "abstract_is_analysis": false, + "abstract": null, + "meta": { + "citations": "/vid/ortiz-v-progressive-direct-1035272272/citations.json?include=case_hist&type=link", + "vincent": "/v1/vincent/vid_analysis/1035272272" + }, + "source": { + "id": 14024, + "type": "source", + "title": "Colorado", + "public_url": "http://case-law.vlex.com/source/14024", + "copyright": null, + "title.en": "CO", + "meta": null, + "frontpage_image": null, + "frontpage_image_highres": null, + "jurisdiction_id": "US", + "unpublished_source": false, + "search_scope": "jurisdiction:US+content_type:2+source:14024", + "isbn": null, + "peer_reviewed": null, + "description": null, + "warning": null, + "full_coverage_from": null, + "source_description": null, + "first_record_at": "1864-01-01", + "last_record_at": "2024-07-01", + "content_type": "Jurisprudencia", + "video_source": false, + "date": "2020-11-12", + "country": { + "id": "US", + "language": "EN" + }, + "language": "en", + "alternate_languages": [], + "publisher": null + } + } + } + ] +} \ No newline at end of file