Linux
Welcome to c/linux!
Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!
Rules:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
view the rest of the comments
sounds like a fun challenge. My thought process is the control flow. To that end:
handled by cron
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.
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.
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
@[email protected]
here's the script
I wasn't able to implement catbox nor youtube uploads for a few reasons:
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
I really do appreciate the effort! I will take a look at this when I'm next able.
I got this script to work! Yeah, I apologize for the lack of FOSS hosting for videos specifically, but there really aren't great options out there unless I run and maintain my own PeerTube instance, which I'm not prepared to do technically or financially. I managed to get it working, so I really thank you for the hours of work you put in! I was able to do two test posts that worked well once I had oauth stuff sorted.
That's great news! I hope my contributions didn't require major overhauls on your part, and I'd love to see the end result (scrubbed of any private info of course) if you care to share.
No worries about the FOSS stuff, I was just fishing for excuses to absolve myself of guilt for not finishing it 😬