Hi Rho'n,Thanks for seconding this. I've such a script based on a Python framework called Selenium which is an integral part of the Inlaw's publishing workflow around HPR. The trouble is that this is a pain to maintain as, for example, any change in the upload page structure / content has to potential to easily break this script.
A couple of years back I came with a h/l design for such an API. I published this on the HPR gitlab instance (cf. my previous remark) but apparently this document has vanished in the midst of time as I haven't heard back from Dave / Ken on this after my previous mail.
I'll see if I can dig this up and share it in a more public place so that we can take it from there...
Cheers, Chris
Message: 1 Date: Sun, 3 Jul 2022 16:22:26 -0400 From: Roan Horning <[email protected]> To: Ken Fallon <[email protected]>, [email protected] Subject: Re: [Hpr] Source Code for the HPR website Message-ID: <[email protected]> Content-Type: text/plain; charset=UTF-8; format=flowed Hi Ken, I would be interested in helping develop an upload API. I have contemplated an HPR recording app that would help record, edit, and post the show from your phone or tablet. Also have ideas for a command line script which reads a file that has the various upload fields in it, and then posts to the website. From my Guix install adventures, I was looking to become more familiar with scheme (in particular Guile), so started working on a script to upload shows. I don't have anything working yet, but I now create a .scm file with the various fields defined when writing my show notes. Then I just copy and paste them into the browser input fields. Not that a script/program couldn't make the post calls to the same location that the webpage form does, but it is easier to parse the response, particularly error responses. Rho`n --
This email account is monitored seven days a week.
OpenPGP_0xE7EEC1C45FE2A7BB.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Hpr mailing list [email protected] http://hackerpublicradio.org/mailman/listinfo/hpr_hackerpublicradio.org
