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

counselwolf@lemmy.fmhy.ml to No Stupid Questions@lemmy.world – 15 points –

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

Just wanted to do a simple little project to practice my programming skills.

I just need to know the outline/backbone of things I should know to do this project.

44

You are viewing a single comment

I have such mixed emotions about Python. I have to concede its uses. Especially when working with data and data scientists. A lot of people use it. There is a good amount of existing code floating around that can be re-used, etc. Its never the first language I reach for, but I have to accept that a lot of people use it.

But OMG, I have had to re-install my OS more than once due to python versioning issues. Not recently sure, I think I have it figured out now with virtualenv and pyenv, but it literally has caused me to reformat twice after getting too deep into dependency version mismatch hell.

How on earth did you bork your os? Were you running stuff with sudo?

But yes, you should install deps in a virtualenv, or use something like docker.

You are the first who understand those issues. And yeah Data scientists use it.

The only one thing i really like in python are the decorators. Those are neat.