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.

  • squirmy_wormy@lemmy.world
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    1 year ago

    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?

    • Rooki@lemmy.worldM
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      yeah i meant internal libs.

      Json encoder does shit with datetime objects.