top of page
Search

5 Python Projects to Automate Your Life: From Beginner to Advanced Brand-new automation projects

  • gairathibk
  • Oct 21, 2022
  • 3 min read

I

ree

f you’re learning Python, you should try to automate your everyday tasks.

You not only learn more Python by implementing what you already know but, in the end, you can see how all your hard work pays off.

Recently, I’ve been automating tasks more than often due to my lack of time. Thanks to that I have 5 new projects that I classified as beginner, intermediate, and advanced.

You’ll find links to the full scripts and tutorials to solve each project. Also, I’m leaving a challenge to each of them to test your Python skills.

1. Automate Microsoft Word (Beginner Project)

How many times did you have to use Word to create a cover letter, contract agreement, resume, or report?

If you can’t count them, this project is for you.

In this project, we’ll automate the generation of Word documents using Python and a library called docxtpl. To do so, we need a template of the document we want to automate. Inside the template, we have to introduce placeholders on each word we want to replace later. We use the {{}} symbol for the placeholders.

How to turn on 2-step verification to be able to use Gmail with PythonHow to send a plain email with PythonHow to deal with an SSL error you may encounter


Challenge: If you want to make this project more challenging, try to attach images to your emails. To do so, you need to use the imghdr library. 3. Automate Filling Web Form (Intermediate Project) One of the most tedious tasks on the internet is filling in web forms. I mean that! Filling in your name, phone number, address, and more information over and over again is boring. Things get worse when you have to come up with fake data to fill in a survey. In this intermediate project, we’re going to fill in fake data to web forms using Python. How to automate this task? We’ll use a web automation library that allows us to perform web actions like going to websites, typing text, and clicking on buttons. Below there’s a step-by-step tutorial on how to automate this tedious task with Python. Here’s what it covers: How to fill in data in a single formHow to generate fake data with the faker libraryHow to fill in multiple web forms


Challenge: The form we fill in this tutorial has simple elements. If you want to make this project more challenging, add advanced elements to the form such as dropdowns and multiple-choice questions. Then try to automate this advanced form. 4. Automate Tinder (Advanced Project) Swiping right on dating apps is so time-consuming that once you get matches, you become lazy in the most important part of online dating — converting matches into actual dates! This advanced project consists in creating a bot that swipes right for you, so you can later work on your pickup lines and increase your conversion rate. What makes this project advanced? Many things. To name a few: Login: No matter what login option you use (Google, Facebook), Tinder will send a code to your phone number. You need to use this code to log in to Tinder. To easily deal with this, we need to keep a Google Chrome session active and then control it with Selenium.Tricky buttons: If you use the .click method to click on the like button, you might get errors sometimes. For this particular website, we need to use an alternative.Popups: While swiping right you may encounter different pop-ups. You have to get rid of them. Below there’s a tutorial that will help you deal with all of these issues. Challenge: The form we fill in this tutorial has simple elements. If you want to make this project more challenging, add advanced elements to the form such as dropdowns and multiple-choice questions. Then try to automate this advanced form.

4. Automate Tinder (Advanced Project)

Swiping right on dating apps is so time-consuming that once you get matches, you become lazy in the most important part of online dating — converting matches into actual dates!

This advanced project consists in creating a bot that swipes right for you, so you can later work on your pickup lines and increase your conversion rate.

What makes this project advanced? Many things. To name a few:

  • Login: No matter what login option you use (Google, Facebook), Tinder will send a code to your phone number. You need to use this code to log in to Tinder. To easily deal with this, we need to keep a Google Chrome session active and then control it with Selenium.

  • Tricky buttons: If you use the .click method to click on the like button, you might get errors sometimes. For this particular website, we need to use an alternative.

  • Popups: While swiping right you may encounter different pop-ups. You have to get rid of them.



 
 
 

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2022 by All new. Proudly created with Wix.com

bottom of page