r/learnpython • • Sep 17 '20

Automate your daily tasks with Python

Hey.

I recently saw someone advertise that they'd be willing to help some lucky folks with automating their daily tasks.

With 8 years experience under my belt and having worked on numerous projects, I want to give back and help others. After all, that's what makes the world go round.

Please drop below some tasks that you carry out on the daily that could be automated - and, I'll help you.

Edit: there’s a whole bunch of stuff to get through, I’m not ignoring you guys. I’ll get round to you all. I’m working on some stuff now for some people, and even being paid to do it too :D thank you so much for your positive response guys, I’m so glad I can be helping some of you!!

640 Upvotes

285 comments sorted by

View all comments

134

u/Uh_IDontKnow0 Sep 18 '20 edited Sep 20 '20

Wow this is great! Kudos to you for helping.

Well the following is a monthly task i do for work, hoping this can be automated somehow.

Once a month, for a span of 2 days (if done full time), I have to do exclusion searches on TWO different websites. I have a list of names (around 600) that i copy paste, to the search bar.

I figured out how to not use the mouse anymore for a faster process (alt +left arrow) and then (alt+tab) but the task is so tedious (copying from excel to pasting in search bar). Once i hit enter, the results pop up and i have to save it as a PDF (Ctrl+P) and name the file with the persons ID and then their name.

Basically manually entering and saving 1200 pdf files is so tedious that it makes me fall behind on my other tasks. Hoping theres a way around this.

[My first edit on a post: Many questions so I'll try my best to answer them here in one go.

I've been doing this task for 2 months after a coworker, who did this before, resigned. Reasons for these gov't exclusion searches are for monthly compliance (healthcare field) and for liability (Only I'm accountable if i screw up) also the company is growing -> more peeps to monitor. We do have a software team but they're stretched thin (constant urgent projects) so I (22F) started to dabble into CS and software programming (not just for work but also as a hobby).

My original plan was to automate this task myself (I'm currently in section 4 in Automate the Boring Stuff with Py.) but realize this needs to be automated asap after the first month doing it(but i lack the skills). Boss is pretty chill,but if i do get more tasks I honestly prefer that then doing this (more tasks->more experience). I've been on this sub for a while; I wanna say OP is a godsend B) and I wanna thank you so much for all your offers to help :D ! Will definitely keep them in mind.

153

u/hustlingpigeon Sep 18 '20

I can for sure do this. Send me a DM, and I’ll send you over my email and we’ll go from there.

48

u/kvndakin Sep 18 '20

I'm interested in just learning how to do something like this, could I possibly see some of your code once it's done?

15

u/LaLambo Sep 18 '20

Same

8

u/SukottoHyu Sep 18 '20

You can browse tons of open source code on github.

15

u/[deleted] Sep 18 '20 edited Sep 18 '20

[removed] — view removed comment

→ More replies (6)

5

u/alienpsp Sep 18 '20

same here as well as learning best practice

4

u/Silverdog777 Sep 18 '20

Same, also to learn best practice. Thank you

3

u/[deleted] Sep 18 '20

Same

3

u/elixiri182 Sep 18 '20

Same, me as it guy always try to assist functional to ease and simplify their job, the scenario mention might be useful for my functional team. Hence, i would like to know how u code it, so i can learn and modify to help out other people.

→ More replies (9)

46

u/[deleted] Sep 18 '20

You are such a nice person. A small bit of my faith in humanity has been restored ;)

6

u/esly4ever Sep 18 '20

Great stuff. Keep it going.

6

u/[deleted] Sep 18 '20

I would be interested in seeing the code.

I am learning Python by Automate the Boring Stuff with Python. I think that this task can be automated by using request or selenium for the page text and then using regex for getting the names. Afterwards, we can search using Selenium, I guess, and use a print to pdf function.

I wanna see if you will opt for this pathway or if there is a better alternative.

4

u/LeadingJudgment2 Sep 18 '20

I'm just dipping my toes into automation. I already did how to automate the boring stuff but is there more resources you can recommend to learning automation? It a part of programming I really enjoyed.

4

u/frex4 Sep 18 '20

Since you already took this task, I have some ideas for this as well, I want to know if my approach is doable and if there's anything you can help to improve my approach.

  1. This task will need to work with Excel => use openyxl or pandas will help we read the Excel and construct a list to fetch.

  2. I would use Selenium and navigate to the site. Type in the search bar with names we have from the list.

  3. Save PDF, which is tricky. If /u/Uh_IDontKnow0 doesn't need text-pdf file, we can capture as a picture then save as PDF => easiest way. If he needs text-selectable pdf, maybe save file as HTML then use pdfkit to convert?

→ More replies (7)
→ More replies (6)

25

u/AzungoBo Sep 18 '20

Unethical life protip(?) : do not tell your manager that this is now automated - nothing good can come of it. Either they will give you more work to use up your newly freed time or they will look into further automation which could lead to you or colleagues redundancy.

9

u/stamour547 Sep 18 '20

^ this right here. Automate but to tell anyone you automate. As Azungobo said, they will just give you more work to do unless you have a REALLY nice manager. Just keep that bit of info to yourself. Oh and keep a copy of the source also so that you can reuse it in the future.

14

u/jumpingjackflash22 Sep 18 '20

Strong disagree. My foree into automation has seen a 100% increase in my salary over the last 4 years and now I only program.

9

u/ItsOkILoveYouMYbb Sep 18 '20

Many people are very afraid of short term unknown change and would rather make their current job easier, rather than realize and pursue the vastly better opportunities they are inadvertently creating for themselves by learning these things.

They let their anxiety defeat them before they even start. Convince themselves the absolute worst thing will happen and so they never actually take that step. Those comments above you are the exact same kind of fear.

Someone has something bad happen to them, and then they let it control their lives for every other potentially similar situation.

6

u/AzungoBo Sep 18 '20

The key difference though is that you were the one that was able to automate it - the requester is being provided the code from someone else. The company would see the source of value as coming from the skilled coder rather than the employee who runs the program.

→ More replies (4)
→ More replies (3)
→ More replies (1)

3

u/Piddoxou Sep 18 '20

Jesus christ what a job... how? What for? Really? So many questions

4

u/Milumet Sep 18 '20

Obviously none of his colleagues or bosses knows anything about programming. For any programmer with the slightest experience this task cries for automation.

→ More replies (11)