Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)MF
Posts
0
Comments
4
Joined
1 mo. ago

  • Neat! You should definitely post then, it's better if I'm not the single-point-of-failure for comics posting. I'll post my still-somewhat-wip script for posting the Peanuts comic, which uses GoComic and probably has a lot of overlap with C&H.

    I run python post_stuff.py, which imports other scripts for each comic and runs them. get_lemmy.py handles caching auth credentials for up to several days (I'm sure it could go longer but I haven't checked the docs yet). Caching the creds and running it all from a wrapper entry point keeps the number of logins down, which I was getting rate limited on. It doesn't currently handle accounts with MFA enabled, but it should be pretty resilient to stuff like file upload failing.

    You can just ignore the image munging bits and probably some other bits, that was for turning the 1x4 Peanuts strip into a 2x2 post here. You might find interesting stuff by poking around on the site, Peanuts has a transcript for each comic in the HTML, though I don't see that for C&H.

    I've also been meaning to publish the git repo somewhere, hopefully this will motivate me to get around to doing that.

    cc @db0@lemmy.dbzer0.com on ☝️btw, pythorhead has been super useful! You might be interested in the use case of handling creds like I do there, maybe that's something the library could do?