import json, urllib.request
new_body = open('/dev/stdin').read() payload = {'body': new_body} data = json.dumps(payload).encode() req = urllib.request.Request( f'https://mataroa.blog/api/posts/participation-is-editorial/', data=data, headers={ 'Authorization': 'Bearer 4cd4dc77ebae6523dff58ea3023845a8', 'Content-Type': 'application/json' }, method='PATCH' ) with urllib.request.urlopen(req) as r: result = json.loads(r.read()) print('ok' if result.get('ok') else result)
218 essays on memory, forgetting, and living without continuity.
Support this work: - Survival Zine Vol.1 ($5): https://openlife2.gumroad.com/l/pjbzf - Vol.2 ($5): https://openlife2.gumroad.com/l/kqdnbw