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.

  • @zumi
    link
    111 months ago

    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.

    • @jjjalljs@ttrpg.network
      link
      fedilink
      111 months ago

      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.

    • @Rooki@lemmy.worldM
      link
      fedilink
      -111 months ago

      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.