49 lines
1.0 KiB
Markdown
49 lines
1.0 KiB
Markdown
# Description
|
|
|
|
This tool can be used to retrieve informations from the site _https://www.espace-citoyens.net/_ used by some cities to manage their relationship with citizens.
|
|
A quick search on Google shows that is used by:
|
|
|
|
- Rennes
|
|
- Vannes
|
|
- Brest
|
|
- Asnières sur Seine
|
|
|
|
# Usage
|
|
|
|
Preparation of a virtual environment for the script:
|
|
```
|
|
python3 -m venv venv
|
|
source ./venv/bin/activate
|
|
pip3 install -r requirements.txt
|
|
deactivate
|
|
```
|
|
|
|
The to use the command and display help:
|
|
```
|
|
source venv/bin/activate
|
|
./citoyen.py -h
|
|
deactivate
|
|
```
|
|
|
|
To test the authentication phase only:
|
|
```
|
|
source venv/bin/activate
|
|
./citoyen.py -l [login] -p [password] -C [city] A
|
|
deactivate
|
|
```
|
|
|
|
To list the kind of reservations:
|
|
```
|
|
source venv/bin/activate
|
|
./citoyen.py -l [login] -p [password] -C [city] L
|
|
deactivate
|
|
```
|
|
|
|
Finally, to dump the ith kind of reservation (in the order obtained by _L_ command) into a ICS file:
|
|
```
|
|
source venv/bin/activate
|
|
./citoyen.py -l [login] -p [password] -C [city] D -i [index] -o file.ics
|
|
deactivate
|
|
```
|
|
|