notifications
This commit is contained in:
@@ -27,18 +27,23 @@ curl 'https://quinquina.champs-libres.be/_wdt/708fb5' \
|
||||
"""
|
||||
|
||||
COOKIE_KEY = 'PHPSESSID'
|
||||
COOKIE_VALUE = '57dee6deabd6e0ae75f7a55421fc2427'
|
||||
COOKIE_VALUE = '977de105d4adbaefde9b440df685831c'
|
||||
|
||||
household_id = 376
|
||||
notification_id = 126
|
||||
parcours_id = 2705
|
||||
|
||||
URLS = [
|
||||
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}'
|
||||
]
|
||||
|
||||
for u in URLS:
|
||||
url = BASE_URL + u
|
||||
filename = 'img/' + u.replace('/', '_') + '.png'
|
||||
filename = 'img/' + u.replace('/', '_').replace('&', '_').replace('?', '_').replace('=', '_') + '.png'
|
||||
print(f'fetching {url} ...')
|
||||
subprocess.run(f"wkhtmltoimage -q --cookie {COOKIE_KEY} {COOKIE_VALUE} {url} {filename}", shell=True, check=True)
|
||||
subprocess.run(f'wkhtmltoimage -q --javascript-delay 1000 --cookie {COOKIE_KEY} {COOKIE_VALUE} "{url}" {filename}', shell=True, check=True)
|
||||
|
Reference in New Issue
Block a user