r/madeinpython • u/bloch98 • 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?
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
5
u/bloch98 Mar 28 '21
Wow! It's cool! Which library did you use?
1
u/h0tpancakes Apr 11 '21
thanks! i used Selenium to automate browser actions, and Time to wait between a few actions in the code
1
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!
7
u/garlic_butt Mar 27 '21
I use it for order entry and customer portals for a large manufacturing company. I had also used it to scrape out customer part numbers which was really easy to do and help our customer service department out a lot.
3
17
u/tjthejuggler Mar 27 '21
İ have a turkish Mp3 audio lesson that says the word in english followed by the turkish translation twice. İ wanted it to say the turkish translation more times though, so instead of editing all the lessons İ wrote python code that did it for me. İ lso wrote code to make anki flashcards out of the word pairs from the audio lesson. To do this all manually would have taken forever, now i can easily adjust it and even reversed the word order to make the lessons be for turkish speakers learning english.
4
u/adamyangyang Mar 28 '21
Nothing crazy but I have an excel file that gets updated with my country's daily covid cases & death numbers every night so I can get a surface level understanding of how good / bad the situation is.
P.s. Just started python not too long ago.
2
u/idwat22 Apr 11 '21
I need you help please... I need the code for this
Zombie Identification question (using python programming)
Does the subject have a glazed over look? (Y/N)
Is the subject moaning? (Y/N)
Is the subject missing any limbs? (Y/N)
Does the subject have pale or gray skin? (Y/N)
Does the subject have any exposed organs? (Y/N)
Is the subject on fire without showing pain? (Y/N)
Does the subject show little response to objects in its paths? (Y/N)
Is the subject limping? (Y/N)
Is the subject wearing a jacket with shoulder pads? (Y/N)
Does subject crave brains and its not the first full week of October (Y/N)
14
u/[deleted] Mar 27 '21
My team basically automates entire Service Desks of the company. Basically zero touch monitoring