Awesome Python Automation Ideas

    29
    27



    In this Tutorial I share quick Python Automation Ideas that you can use everyday to simplify your life.

    ✅ Write cleaner code with Sourcery, instant refactoring suggestions in VS Code & PyCharm: https://sourcery.ai/?utm_source=youtube&utm_campaign=pythonengineer *

    ⭐ Join Our Discord : https://discord.gg/FHMg9tKFSN

    🚀🚀 Get monthly Python and ML Tips:
    https://www.python-engineer.com/newsletter/

    🚀🚀 SUPPORT ME ON PATREON:
    https://www.patreon.com/patrickloeber

    If you enjoyed this video, please subscribe to the channel!

    Code:
    https://github.com/python-engineer/python-task-automation

    Cronjob Tutorial:
    https://www.python-engineer.com/posts/cron-jobs-for-python/

    Timeline:
    00:00 – Introduction
    00:19 – Send Emails
    01:10 – Job Board Scraper
    03:21 – Price Tracker
    06:15 – Background Image
    08:00 – Tweet Scheduler

    You can find me here:
    Website: https://www.python-engineer.com
    Twitter: https://twitter.com/python_engineer
    GitHub: https://github.com/python-engineer

    Music: https://www.bensound.com/

    Photo by Arnold Francisca: https://unsplash.com/photos/nPhl2x4fk2s

    #Python

    ———————————————————————————————————-
    * This is a sponsored or an affiliate link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏

    source

    Previous articlePython Tutorial: Intro to AWS and Boto3
    Next articleBelajar Konsep dan Praktik MapReduce dengan Hadoop dan Python

    27 COMMENTS

    1. Thanks for this! I am just starting to learn some coding with the hopes of automating some tedious tasks and this gave me a really great breakdown of what is possible and gives me a much better idea of what I would actually have to do. Great video.

    2. The auto email is not working for me although I did as shown in the video. I was told that one should avoid using gmail, because it is a highly secured server and it is quite complex to make it work. In fact, most if not all examples on the Internet demonstrating how to send an email with a Gmail server do not work

    3. Hi newbie here. I'm trying to use pyautogui to automate saving excelfile. apologies if im not using proper programming vocabulary. So here it is. I declared tday as date today & tdelta to 1. then i created a tdate=tday-tdelta which just minus 1 day from today. Then i declared FILE_NAME as the path with the filename itself with the date. so if today is April 7, 2021 the filename should look like DATA_2021-04-06.csv. The problem is when i try saving it. and executing the pyautogui.typewrite(FILE_NAME). it just types in everything in text. This is the filename created "DATA_ + tdate +.csv . It looks as if tdate isn't seen as a variable. Rather it is seen as a text. I placed + + in between the variable tdate. but still its being saved as a text. Do you have any idea on this or a workaround or do i have wrong script. any sugestion would be greatly appreciated. Thank you

      #CREATING DATE -1

      tday=datetime.date.today()

      tdelta=datetime.timedelta(days=1)

      tdate=tday-tdelta

      #SAVING

      pyautogui.hotkey('Ctrl', 's')

      pyautogui.hotkey('enter')

      pyautogui.press('right')

      pyautogui.press('down', presses=5)

      pyautogui.hotkey('enter')

      pyautogui.click(202, 503)

      FILE_NAME = 'C:UsersDesktopNew folder(3)DATA_' + tdate + '.csv'

      pyautogui.typewrite(FILE_NAME)