• 1 Post
  • 50 Comments
Joined 3 years ago
cake
Cake day: January 23rd, 2022

help-circle







  • Take the passive-aggressive nerd approach:

    1. Start a niche online movement that only cares about one aspect of computing and convinces people all their problems are caused by your pet peeve

    2. let the company dig its grave

    3. create a FOSS alternative

    4. sell a premium version for businesses (it includes phone support and management-friendly marketing matetials)

    5. congrats, you are now the de facto standard software in your field












  • @jawa21@lemmy.sdf.org

    here’s the script

    I wasn’t able to implement catbox nor youtube uploads for a few reasons:

    1. neither are FOSS services, and I sneer at those in my moral superiority (disregard the above usage of github)
    2. I’m lazy
    3. This script isn’t for me and I will likely never use it
    4. I’ve already spent over 2 hours on this
    5. catbox.moe is a small site, with little-to-no API documentation. I didn’t want to hammer them with 100 API POST requests with blank files while I test the script and figure out their API through trial and error
    6. youtube requires an API key via oauth… I really don’t have time to work that fustercluck out

    I left in some helpful comments anyway.

    All in all a fun exercise that brought me and lemmy closer together, and that’s what really matters. Turns out the real API docs were the friends we made along the way


  • sounds like a fun challenge. My thought process is the control flow. To that end:

    1. script runs

    handled by cron

    1. Script selects files to upload, community to upload to and titles for them.

    These are the hardest parts, because it will be the only variable parts. It basically requires user input. I’m thinking perhaps parsing a text file where you input the file name, the community, and the title.

    1. Script authenticates with lemmy API

    I found this really handy “unofficial” API documentation, which includes examples in many different languages, through the official docs.

    Unfortunately, it looks like it’s going to require a hardcoded password to get the appropriate authorization token.

    1. script posts to lemmy

    We can use the api documentation above to figure out this part too


    For other sites like youtube, you can expand on this script and have parts for youtube as well, but you’re basically doubling its size and complexity. Personally, I would go for the KISS method instead and just have a separate script & info file.

    After work today, I’ll see if I can slam out a quick proof of concept in Python