It will get the top wallpaper from r/wallpapers and set it to my desktop background
Make sure your Reddit account is registered as a bot because you will need a id, secret, and user agent to use API. Here is a quick guide on how to register it https://github.com/reddit/reddit/wiki/OAuth2-Quick-Start-Example#first-steps Note: the user agent can be anything, but it usually looks something like this, "Python/urllib: python.Reddit_Wallpaper:v0.1.1 (by /u/username)"
To automate this script to make it run once a week I used windows task scheduler. Here is a guide on how to do that https://www.jcchouinard.com/python-automation-using-task-scheduler/
(I have not looked into how to automate using MacOS)