Metadata-Version: 2.1
Name: scrapse
Version: 0.1.0
Summary: Package for downloading judgments
Home-page: https://gitlab.di.unito.it/ngupp/ngupp-scrapse
Keywords: scraping,judgments
Author: zaharia laurentiu jr marius
Author-email: zaharialorenzo@gmail.com
Maintainer: zaharia laurentiu jr marius
Maintainer-email: zaharialorenzo@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: beautifulsoup4 (>=4.11.2,<5.0.0)
Requires-Dist: requests (>=2.28.2,<3.0.0)
Requires-Dist: typer[all] (>=0.7.0,<0.8.0)
Project-URL: Repository, https://gitlab.di.unito.it/ngupp/ngupp-scrapse
Description-Content-Type: text/markdown

# ScrapSE

## Package description

ScrapSE downloads the judgments in the desired format.  
Currently supported platforms: LEGGI D'ITALIA PA

### Install scrapse
```
pip install scrapse
```

### How to use

#### Saving cookies - important
```
scrapse leggitalia save-cookie 'your_cokies'
```
This command creates a `.txt` file containing `your_cookie`.

#### Show filter values
```
scrapse leggitalia show
```
This command shows the possible values to be assigned to sentence search filters.

#### Download the judgments
Make sure you have **saved** platform-related cookies before downloading the judgments!.
```
scrapse leggitalia scrap -l torino -s 'Sez. lavoro, Sez. V' -r 50
```
This command creates a folder in `Users/your_username` named `sez.lavoro&sez.v_torino` containing the numbered judgments.

#### For more help
```
scrapse --help
```

