upd images

This commit is contained in:
nobohan
2022-03-17 16:11:25 +01:00
parent a94a62fe3e
commit 45cfb6a025
8 changed files with 30 additions and 7 deletions

23
screenshot/README.md Normal file
View File

@@ -0,0 +1,23 @@
# Requirements
This script assumes that you have installed wkhtmltopdf.
```bash
sudo apt install wkhtmltopdf
```
# Usage
```bash
python mk_screenshot.py
```
# Authentification
You have to allow `wkhtmltopdf` to authenticate. To do so, get a valid cookie key/value by copying as curl any request to a Chill page in your browser (Go to the network panel, pick a request and "copy as curl").
Then, copy the 'PHPSESSID=57dee6deabd6e0ae75f7a55421fc2427' value (eg: 57dee6deabd6e0ae75f7a55421fc2427) in `COOKIE_VALUE` in the python script.
# Post-processing
Images are too heavy, so they can be resized.

View File

@@ -43,13 +43,13 @@ URLS = [
f'fr/activity/?accompanying_period_id={parcours_id}',
f'fr/person/{person_id}/document/new',
f'fr/person/{person_id}/document',
f'fr/parcours/{parcours_id}/document',
# f'fr/parcours/{parcours_id}/document',
f'fr/person/household/{household_id}/summary',
f'fr/person/household/{household_id}/addresses',
f'fr/person/household/{household_id}/relationship',
# f'fr/person/household/{household_id}/relationship',
'fr/notification/inbox',
f'fr/notification/{notification_id}/show',
f'fr/notification/create?entityClass=Chill%5CPersonBundle%5CEntity%5CAccompanyingPeriod&entityId={parcours_id}',
# f'fr/notification/create?entityClass=Chill%5CPersonBundle%5CEntity%5CAccompanyingPeriod&entityId={parcours_id}',
f'fr/vendee/vendeeperson/{person_id}/infosociopro/view',
f'fr/vendee/vendeeperson/{person_id}/infomedicale/view',
f'fr/vendee/vendeepersonmineur/{personmineur_id}/infofamille/view',