r/learnpython • • Feb 29 '20

Actually used python today

I've been learning python for about a month now. I started with automate the boring stuff like so many others have. Since then I have made some small games to practice. I am currently working on a hangman game and needed a list of words to use. I found a list of words and copied the whole thing to a .text file but it came with extra stuff I didn't need. So instead of manually deleting everything I didn't need I made a python script to do it for me. GREATEST FEELING EVER.

393 Upvotes

63 comments sorted by

View all comments

Show parent comments

14

u/Nixellion Feb 29 '20

a lot of boring jobs can be completely automated :D

8

u/[deleted] Feb 29 '20

Like what? I work as a Help desk and want to learn Python, but I can’t think of what it would be useful for.. :(

30

u/Nixellion Feb 29 '20

Well, try contacting microsoft support and you'll realise that its a bot, most likely written in python :D

The logic is - what repetitive tasks you do? Do you have to do the same thing more than 3 times in short period of time? Then its likely it can be automated, the question is how.

4

u/[deleted] Feb 29 '20

Off the top of my head I can’t think of anything to be honest and most issues I can fix pretty quick or it’s a printer issue lol

4

u/Nixellion Feb 29 '20

Well I dont know how helpdesk works, you'd have to describe your daily routine for me to be able to think of something

6

u/[deleted] Feb 29 '20

It’s pretty boring. I get in to work and go through all my tickets to see the new ones that get auto assigned to me then determine next steps and schedule them. I then watch YouTube or Anime and do the tickets.

I don’t know how people find stuff to do with Python! But maybe my job just sucks lol

8

u/Nixellion Feb 29 '20

Mhm, well, that's very general overview of what you do, you need to go deeper into details. What actions do you perform? How do you find tickets? Where do you look for answers and info for them?

Though from this general description it looks like it's just already automated for you. You most likely get tickets from some application or system, which most likely runs on a central server and is likely, surprise, written in Python :D Or something similar.

So yeah, some jobs are already automated for you and it's hard to find something. But you can automate stuff outside of your job too. Or find another job :D One that can get help from python. I work with gamedev and VFX and there's ton of stuff that can be automated, and it's so happens that Python is industry standard scripting language for CG software (except Adobe because they are huge shlongs)

8

u/sportsroc15 Feb 29 '20

Yeah people don’t understand that most of the already automated stuff we use are computer scripts and what we do as software engineers is work with that already automated software and update it and make it better as time goes along. Also automate new things as needed.

5

u/Yakhov Feb 29 '20

Write a script that reads each ticket, uses key words to generate an auto reply to the problem and closes the ticket.

3

u/[deleted] Feb 29 '20

I'm curious about this, mainly for the scanning. We can't close out tickets right away, as we're expected to reach out to the user (yay customer service /s).

Would I need special access if our ticket system is web based, or would it be better to just scan the ticket notifications we receive in email instead as it has the pertinent issue in that email (no user details).

3

u/Kryma Feb 29 '20

You could use selenium to interact with the web-based system!

→ More replies (0)

2

u/Yakhov Mar 01 '20

You could scrape the web stuff with beautiful soup, or thers proly an easier way to get it from the email. I seen tutorials on sentiment analysis for tweets or whatever. You proly already have a bunch of boiler plate responses to trigger based on the content keywords; run it through a neural network to select the best response and fire off a reply. THen go watch more tiktok

2

u/[deleted] Feb 29 '20

You can get in to proactive incident management. I have a lot of experience with this. I use my scripts to scan for and remediate problems before the user sees them.

After a couple of years of proactive incident management, we brought incident reports down from ~160,000 tickets a year to ~70,000. Were still continually improving this program.

Do note, I am an engineer, not front line support. If you go this route, make sure your management backs you and is willing to elevate your position if you make things run smoother. Otherwise you may make yourself redundant.

1

u/[deleted] Mar 01 '20

Could you give me an example by chance? This sounds quite interesting.

1

u/[deleted] Mar 01 '20

We went after the biggest fish first. For example we poll printers and print server queues looking for issues. If the printer isn’t responding to print jobs, we issue a reboot to it. If that doesn’t clear, we kick a ticket off to desktop and have them stop by. If the printers hostname starts with KM, we issue a service request to Konica Minolta since it’s an MFD under contract. We purge print queues and restart print services nightly to keep things tidy. We have somewhere around 16,000 printers, so things can get hairy.

We ingest logs and SNMP from every computer, server, and network appliance. We look for common issues like packet loss, failed windows updates, TPM chip issues, bitlocker problems, BSOD, brute force attempts, account lockouts, VPN instability, POE failure, access point outages, saturated links, etc etc.

We have also created a self service portal that eats up a lot of the password reset calls. If a user is locked out, they can use their neighbors computer to navigate to the portal and reset. Users can put in other tickets here too. This also reduces call volume and frees up level 1’s to troubleshoot and triage as necessary.

We’ve automated as many things as we could before issuing a ticket to a human. A lot of the inbound calls are just human error or help with an excel formula now.

2

u/[deleted] Mar 01 '20

I am pretty sure you could write a script in python that will watch YouTube for you!

1

u/MotionlessMatt Feb 29 '20

Have python get the new tickets for you. It can surely be done!