Metadata-Version: 2.1
Name: scrapse
Version: 0.3.5
Summary: Package to download and manage 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.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: beautifulsoup4 (>=4.11.2,<5.0.0)
Requires-Dist: numpy (>=1.24.2,<2.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-filters
```
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-judgments -l torino -s 'Sez. lavoro, Sez. V'
```
This command creates a folder in `Users/your_username/scrapse` named `sez.lavoro&sez.v_torino` containing the judgments.

#### Dump judgments to json format
```
scrapse leggitalia dump-judgments -d 'folder_path'
```
This command creates the json files by saving them in the judgments_dump folder.

#### For more help
For more information for each command.
```
command-name --help
```

