Skip to main content

A package for scrape case law informations.

Project description

UKLawCaseScraper


UKLawCaseScraper is a module, allows you to retrieve judgments and decisions information from 2003 onwards, from Find case law in a friendly, Pythonic way without having to solve CAPTCHAs.

Installation


UKLawCaseScraper can be installed with pip. To install using pip, simply run:

pip install UKLawCaseScraper

This package has 3 main modules:

  • CaseInfoScraper
  • CaseHeaderScraper
  • FullTextScraper
  • Save_to_json

1- CaseInfoScraper


This module contains 2 functions. These functions scrape Link, Name of the Case, judgment-listing__court, judgment-listing__neutralcitation and Datetime for a page or multipages. Funcrions:

  • scrape_judgments
  • scrape_all_judgments_info

2- CaseHeaderScraper


This module has 3 functions. First module give us just page's urls that use in second and third functions. (So you have to run scrape_judgment_urls first) then, second function gives us direct download case's PDFs and the last one, scrape case header info :) Functions:

  • scrape_judgment_urls
  • judgment_Dlink
  • scrape_header_info

3- FullTextScraper


This module has 3 function. It gets output of scrape_header_info and scrape all text of each cases. Functions:

  • load_json
  • scrape_full_text
  • OutputScraper

Save in JSON format


This scraper has one more function to save data in a stable format named SaveToJson

More information in github repository page in UKLawCaseScraper


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

UKLawCaseScraper-0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

UKLawCaseScraper-0.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file UKLawCaseScraper-0.1.tar.gz.

File metadata

  • Download URL: UKLawCaseScraper-0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for UKLawCaseScraper-0.1.tar.gz
Algorithm Hash digest
SHA256 77e9dc1502b8780b5cddefded46a05789ed5db26acbec5d2d635f26172ffca38
MD5 f1f23688de9e24ec0861e963db99f44c
BLAKE2b-256 2589477adaf6a8e1c9dd9e551578e9a7c2b7a7d4871ebebf8f910fcdec34a615

See more details on using hashes here.

File details

Details for the file UKLawCaseScraper-0.1-py3-none-any.whl.

File metadata

  • Download URL: UKLawCaseScraper-0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for UKLawCaseScraper-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11fcc51315e8a3f601908d1aad7df7d53ae5be6e8b31e67841c7cc332da2028c
MD5 dbbdc3d4fe9bf76c72b6c4e83bd6ef08
BLAKE2b-256 2a94372c4201629bd05bd864b5cf6bd9b3fc394b2f734ad88b73656ea358c202

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page