Using Python, How can I create a bot/script that let's me re-post a subreddit's post to Lemmy?

https://lemmy.fmhy.ml/post/818426

Why does everybody wants to use python 😔
It’s easy to learn, has many packages, one of the most well known languages

easy to learn yeah ig. But for anything more than a simple 1 file organized script its not (easily) capable. I dont even want to start with the indentations. Yeah many packages :) But why? Because like half of vanilla stuff from other languages cant be done without it. Most known? Most started to learn language. Those “script” kiddies count in there too. I have to work with it everyday and i dont know how such bs could ever been created from a sane person.

Most of it is personal opinion and will spark like html is not a programming language some heated discussions here.

A project that is seperated in different files is as difficult as in C(++), Java or Rust. Regarding the itendation I agree, but that’s personal preference. What ‘vanilla’ stuff can’t you do without libs?
Typing, Interfaces, enums, abstract classes ( i didnt meant 3rd party libs ). I dont statet those difficult but stable programming languages. Java is simple and is organized.

Python 3 has all those things built-in, and datetime has been there forever:

import abc Import typing Import enum Import datetime

What’s wrong with the json encoder?

yeah i meant internal libs.

Json encoder does shit with datetime objects.