r/madeinpython • • Mar 27 '21

Automating with python

Automation is cool. I have tried some of the simple things with automation. What are the craziest things that you have automated with python?

26 Upvotes

15 comments sorted by

View all comments

14

u/h0tpancakes Mar 28 '21

its not crazy per say, but i made a script that builds a youtube playlist for me before bed.

basically, i set it to run before i brush my teeth, and it goes through my subscription list and adds videos i havent watched yet to a playlist.

by the time i'm ready for bed, all the videos i want to fall asleep to are already in a playlist for me. all i have to do is hit play

1

u/[deleted] Mar 28 '21

[removed] — view removed comment

1

u/h0tpancakes Apr 11 '21

i do!

https://github.com/hbkpancakes/upnext

fair warning, i'm still very early in my python learning so it may not be the most efficient script to setup, or the cleanest of code, but it works just fine!

i still need to work on a few things - for example, a lot of try/except blocks dont have specific errors referenced, and ones that do, i need to specify one or two more specific errors that can happen

i also want to add a few more options to it eventually as well

i'm almost positive there is an easier way to setup the use of the script, right now you need to create a few folders for the configs and browser driver (which i could probably just specify the folders be created on the first run of the script in they dont already exist). the repo has steps for the setup at least

anyway, hopefully it is useful to you!