Automating My Bill Payments with Python and Selenium

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • In this Python Programming video, we will be learning how to automate bill payments using Selenium. We'll cover how to set up Selenium, fill out forms, interact with page elements, and send notifications to ourselves via email or text. This tutorial is based on a real-world example that I use myself, which many of you will be able to apply to similar problems in your daily workflow. By the end of this tutorial, we'll have a robust script that can handle bill payments efficiently and securely. Let's get started...
    The code from this video can be found at:
    gist.github.co...
    DotEnv Tutorial - • Python Tutorial: Secur...
    Name == Main Tutorial - • Python Tutorial: if __...
    Error Handling Tutorial - • Python Tutorial: Using...
    Logging Tutorial - • Python Tutorial: Loggi...
    Email Tutorial - • How to Send Emails Usi...
    Crontab Tutorial - • Linux/Mac Tutorial: Cr...
    Unit Testing Tutorial - • Python Tutorial: Unit ...
    Email-to-Text Gateways - www.smscompari...
    ✅ Support My Channel Through Patreon:
    / coreyms
    ✅ Become a Channel Member:
    / @coreyms
    ✅ One-Time Contribution Through PayPal:
    goo.gl/649HFY
    ✅ Cryptocurrency Donations:
    Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
    Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
    Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
    ✅ Corey's Public Amazon Wishlist
    a.co/inIyro1
    ✅ Equipment I Use and Books I Recommend:
    www.amazon.com...
    ▶️ You Can Find Me On:
    My Website - coreyms.com/
    My Second Channel - / coreymschafer
    Facebook - / coreymschafer
    Twitter - / coreymschafer
    Instagram - / coreymschafer
    #Python #Selenium

Комментарии • 163

  • @coreyms
    @coreyms  8 месяцев назад +121

    This is a long one! But would we really be programmers if we didn't spend hours automating a task that only takes a few minutes each month? I sped it up when I could without leaving out any information I thought would be useful. Hope you all find it helpful!

    • @kevinc7632
      @kevinc7632 8 месяцев назад +2

      I literally have the capability and never even thought about this 😂😂

    • @ralvarezb78
      @ralvarezb78 8 месяцев назад

      GOOD STUFF !

    • @bakasenpaidesu
      @bakasenpaidesu 8 месяцев назад +2

      😂😂😂

    • @johnstewart2704
      @johnstewart2704 8 месяцев назад

      Love your detail!

    • @Rik2thePythonista
      @Rik2thePythonista 8 месяцев назад +2

      Inspiring video like this is never too long. In fact, I enjoyed every second of it.

  • @pavankumark5611
    @pavankumark5611 8 месяцев назад +34

    4years back I started consuming your content for Python development, Now i have changed my career from Mainframe to Data Engineer all bcoz of you.. Thank you for your contribution to the Tech Community. Good to see you back in form with the same energy 👍

    • @RicardoCelso-j8d
      @RicardoCelso-j8d 5 месяцев назад +1

      Same to me!!
      3 years ago (almost 4) i started watch python videos and today i am very happy as a data engineer! Thank u so much @coreyms

  • @mrrobotman5299
    @mrrobotman5299 8 месяцев назад +12

    I've been wanting to text myself forever and only found paid services. Thank you so much for showing the free way.

  • @GabrieleChiusano
    @GabrieleChiusano 8 месяцев назад +18

    Good to hear from you! Glad you're back!
    As a high school teacher, I'm using your Django and Flask series as the main source of information for the student's final project of the year since 2021.. and you NEVER disappoint!
    Thanks you for sharing this!

    • @coreyms
      @coreyms  8 месяцев назад +4

      That's awesome! Thanks for sharing!

  • @frindle18
    @frindle18 8 месяцев назад +33

    Bruh I spent the whole of last week looking for good videos on Selenium and you release it after I finish everything 😭😭

    • @coreyms
      @coreyms  8 месяцев назад +27

      I hope you find this helpful! This isn't as much of a deep-dive into a specific topic like I normally cover, but I do plan on doing a video entirely dedicated to Selenium soon to show a lot more of its functionality. This video was tailored towards a specific problem, so we only get a limited view of it capability here, but hopefully the real-world example will spark some ideas in folks for how they can use it in their workflows as well.

    • @olamideyakublateef2481
      @olamideyakublateef2481 8 месяцев назад +7

      Please do, it'll be very helpful

    • @comic-typ5919
      @comic-typ5919 8 месяцев назад

      I agree​@@olamideyakublateef2481

    • @jhawar-ji
      @jhawar-ji 8 месяцев назад

      Same. I was also setting up a GitHub Actions and selenium to scrape, download and upload data

    • @mrhitsjr4775
      @mrhitsjr4775 8 месяцев назад

      @@coreymswhen will you post more python videos?

  • @glorytoarstotzka330
    @glorytoarstotzka330 8 месяцев назад +5

    thanks for teaching me with your intermediate courses. I learnt from them years ago and I've been a hired dev for 2 years now. object oriented programming was just too difficult for me until I watched and rewatched those tutorials, thanks again for that. I think that that tutorial really made the difference

  • @Neeoooo
    @Neeoooo 8 месяцев назад +4

    Hey Correy. I had to recheck my notifications 3 times to make sure what I was seeing was right. Welcome back Buddy. Hope to see more videos. Always loved your videos.

  • @WhalesLoveSmash
    @WhalesLoveSmash 5 месяцев назад

    I am a new programmer and found your channel when I was looking for object oriented programimg tutorials and was a bit sad to see everything was years old so it's big hype to see you are making videos again!

  • @johnsolly
    @johnsolly 8 месяцев назад +16

    I started my development journey with your Django blog playlist. Cool to see you posting new content.
    Corey is the Python GOAT

  • @cybu6466
    @cybu6466 8 месяцев назад +2

    Dude! Excellent thorough tutorial. Love your coding style. Welcome back and thanks for sharing your super valuable wisdom and knowledge!

  • @motogpwin
    @motogpwin 8 месяцев назад +3

    Thank you Sir, just trying to get myself back to work after being disillusioned working nearly 17 years and achieving nothing meaningful (off work since Oct 22), what better way than to start with your video. Thank you again.

    • @coreyms
      @coreyms  8 месяцев назад +3

      Best of luck getting back at it! And I hope you find that sense of achievement towards something meaningful. If not found through work, then within other aspects of life. In my opinion, it’s important for our well-being to have that. You’ll get there!

    • @motogpwin
      @motogpwin 8 месяцев назад +1

      @@coreyms Thank you so much

  • @redfire5887
    @redfire5887 8 месяцев назад +2

    The goat is back! Corey I dont think I would be anywhere where I am in my life if you haven’t made these youtube videos. Thank you for your work and I look forward to seeing your new videos! Maybe you could do a tutorial on pytorch/NN in the future!

  • @gabrconc
    @gabrconc 8 месяцев назад

    I have done the financial web app for me using your Django series many years ago. I have it up and running on Linode and every month me and my wife use it to do our monthly budget. All thanks to the knowledge I got from your tutorials. I can’t wait to see that new series.

  • @FR-el4ee
    @FR-el4ee 8 месяцев назад +8

    Missed you! I m following you for years!!

  • @lukasthego3462
    @lukasthego3462 7 месяцев назад +2

    Hi Corey, l'm glad that you make new videos! I pray for you.

  • @紫晶-w5s
    @紫晶-w5s 3 месяца назад

    最近的工作是使用Excel 的VBA搭配 Selenium開發 Robotic process automation (RPA)專案, 畢竟辦公室裡每個人都有Excel 及Web Application環境, 謝謝您精彩且流暢的影片, 學到很多可以套用的技巧 🙏

  • @travin42
    @travin42 8 месяцев назад +1

    Good to have you back Corey. I‘m really looking Forward to more Videos in the future. 😊

  • @GeneralBlorp
    @GeneralBlorp 8 месяцев назад +2

    Good to see you doing stuff. Built my first Django site via your tutorials 👍

  • @hassaanhameed
    @hassaanhameed 6 месяцев назад

    hi corey I read your story how to start your career from nasa and learn programming in such a way we all need to, relatable and learn alot from you "THE BEST DJANGO SERIES TILL NOW" Thanks alot 😍👏👏

  • @paborlouise319
    @paborlouise319 8 месяцев назад +2

    I'm so joyful seeing this. I've missed your contents.

  • @kavehyarohi2886
    @kavehyarohi2886 8 месяцев назад +5

    Am I first or what Corey?!
    bam, I love you and great to see you back. definitely going to watch and use this. thank you thank you
    .

  • @spryte4371
    @spryte4371 7 месяцев назад

    holy shit dude ur voice has changed so much. i was just watching your web scraping tutorial (my first ever video of yours) using python and wanted to see what u were upto. hope you're well bud

  • @officesuperhero9611
    @officesuperhero9611 8 месяцев назад +1

    Good to see you are back. You are an amazing teacher.

  • @eziola
    @eziola 8 месяцев назад +11

    I look forward to new Corey Schafer videos more than the super bowl.

  • @deequi77
    @deequi77 8 месяцев назад +2

    The legend is back! Thank you Corey!

  • @aniketmahajan1337
    @aniketmahajan1337 8 месяцев назад +1

    I am learning python from your python plalist that was the best content even after 7 years . I hope you will teach Numpy also and Thanks you for making my python learning so fun😊

  • @teprox7690
    @teprox7690 8 месяцев назад +2

    Nice to see new content from you. Thank you so much! ❤❤❤❤

  • @khaled-dz8357
    @khaled-dz8357 7 месяцев назад

    Do you know Corey you are chaning my life, last week I watch your video about sending Emails with attatchments, i could do thzt script myself and then used Chatgpt to understand each piece of line in it. And then learnt more with chat gpt and add so many functionalites and features. Then i find myself trying to send sms via email and today watched your video . Thanks corey

  • @porlando12
    @porlando12 8 месяцев назад

    Feels like I'm back in grad school all over again getting to watch a brand new Corey Schafer video!

  • @SkNiazi786
    @SkNiazi786 4 месяца назад +1

    Who is here after new tutorial on pathlib by this awesome dude.

  • @miss-u8d
    @miss-u8d 7 месяцев назад +1

    Please keep updating this will help me a lot in my studies

  • @pythonenthusiast9292
    @pythonenthusiast9292 8 месяцев назад

    would be great if you could post a playlist/course on automation framework using selenium & python with taking an example of any live famous website.
    you're a legend btw! I hope we see you more often :)

  • @fuadadio
    @fuadadio 8 месяцев назад +1

    Coreyyyyyyyyyyyyyy
    Been some 4/5 years I discovered this channel❤
    The "hey there"😭

  • @lyricallyrika9841
    @lyricallyrika9841 8 месяцев назад +3

    Thanks Cory. You've been our python eyes.

  • @oukiebotha2227
    @oukiebotha2227 7 месяцев назад

    Hi Corey. My msg is off target with this tutorial. Finished you Pandas tutorial last night. Just want to say thank you very much. Excellent course. You helped me a lot. Much appriciated. Thank you, thank you. + 1 sub🙏🙏👌👌

  •  8 месяцев назад +1

    Very complete tutorial. Thank you very much for the details!

  • @raylee141414
    @raylee141414 8 месяцев назад +1

    dude. your videos are always the best

  • @jcultist4715
    @jcultist4715 8 месяцев назад +3

    Nice! Thanks for sharing, hope you're doing well. Have a great weekend!

    • @coreyms
      @coreyms  8 месяцев назад +1

      Thanks! You too!

  • @bakasenpaidesu
    @bakasenpaidesu 8 месяцев назад +1

    Legend is back ❤

  • @mesutbirol6418
    @mesutbirol6418 8 месяцев назад

    Good to see you again ! Great Video!

  • @rafael_tg
    @rafael_tg 8 месяцев назад +1

    Hello Corey. Thanks for the video. Python Selenium does not require manual driver downloads anymore. Starting from Selenium version 4.6.0, the Selenium Manager is integrated, which automatically discovers, downloads, and caches the drivers required by Selenium when they are unavailable. This means that Selenium can download the necessary drivers silently, eliminating the need for manual downloads.

    • @Lsteve24
      @Lsteve24 8 месяцев назад

      When did this happen? Do you mean you do not have to install chromedrivers anymore?

    • @rafael_tg
      @rafael_tg 8 месяцев назад

      @@Lsteve24 yes. Just use driver = webdriver.Chrome()

  • @munish259272
    @munish259272 8 месяцев назад

    Hi Corey, Thanks for coming back.
    Is it possible for you to make video on weak references, descriptors, class abc(meta classes)

  • @hugogradvohl1549
    @hugogradvohl1549 8 месяцев назад

    Simple and clear as usual.

  • @asddsa8203
    @asddsa8203 6 месяцев назад

    Super helpful to go through an actual case

  • @luca-o-sharp
    @luca-o-sharp 8 месяцев назад +1

    Thanks for posting and educating us 🤗blessings🌟

    • @coreyms
      @coreyms  8 месяцев назад +1

      Anytime! Thanks for learning!

  • @NanNan-OuYang
    @NanNan-OuYang 8 месяцев назад +2

    视频很棒❤,完整的看完了🎉,我自学python看的就是你视频,至今仍保存在电脑💻里面,也很喜欢你的英文发音,顺便学习一下英文听力😊,非常感谢

  • @khaled-dz8357
    @khaled-dz8357 7 месяцев назад

    Great video, I really enjoy the way tou write the code and originze everything. Chatgpt always recmonded you. Thank you so luch corey please keep sharing real world scripts. Hope you do script with twilio to send sms and whatsapp messages using python script to list of numbers.

  • @njsir3826
    @njsir3826 7 месяцев назад +1

    Corey please create a complete dedicated playlist for selenium just like your python playlist

  • @derejeteshager6240
    @derejeteshager6240 12 дней назад

    You are amazing !!!!!! Thank you for everything.

  • @ThierryLalinne
    @ThierryLalinne 8 месяцев назад

    Very useful! Thank you so much Corey. 🙏

  • @samarth7199
    @samarth7199 8 месяцев назад +1

    Hey Mr. Schafer i just started following your python playlist and its amazing just wanted to ask that is it in correct order (the whole playlist) and if not can you please provide the correct order to watch that.

  • @akshaan99
    @akshaan99 8 месяцев назад +1

    Another great video, Thank You !

  • @johnigata794
    @johnigata794 8 месяцев назад +1

    I am looking forward to fastapi tutorials from you Corey

  • @OnStageLighting
    @OnStageLighting 8 месяцев назад

    Lots of great stuff here, although in my experience utilities here in the UK are using various automated chat bots for bill payments that are not predictable enough to script even if they were actually parseable. (Ignoring the fact that automated payments are already common, but many online services are not predictable, aren't elderly .cfm pages, and so most webstuff in 2024 is therefore hard to script in this manner). Good real world example for a tutorial though, thanks.

  • @davidhite1868
    @davidhite1868 8 месяцев назад +1

    Great, great video. Thank you.

  • @therealyash.sharma
    @therealyash.sharma 8 месяцев назад

    Please drop tutorials on:
    1. Fastapi
    2. How to use twilio
    3. How to break the bigger problem into smaller functions and classes. I am new to development and struggle to divide the problem and write different functions
    Also, do you think it's possible to become SWE just by knowing python? Please tell me what kind of projects I could to do to showcase swe experience. Most people have web dev tutorial on mern stack

  • @codingisawesome
    @codingisawesome 8 месяцев назад

    The legend is back

  • @cryptosimon9529
    @cryptosimon9529 8 месяцев назад

    The goat ladies and gentlemen 🐐

  • @PhrostyGaming
    @PhrostyGaming 8 месяцев назад +3

    Just an FYI, many providers have discontinued Email to SMS due to spam. Check with your provider first to see if it is still available as a service. I know for sure Fido and Rogers are no longer active.

    • @coreyms
      @coreyms  8 месяцев назад +1

      I didn't realize that. Thanks for the info! Spammers gotta ruin everything. This is why we can't have nice things.

  • @lahcenkhweb1912
    @lahcenkhweb1912 8 месяцев назад +1

    amazing, thank you💥💥

  • @DANNYEL20122
    @DANNYEL20122 8 месяцев назад

    The king is back

  • @oshokerichard706
    @oshokerichard706 8 месяцев назад

    I came across your RUclips channel ,when i was searching for the best RUclips tutorial on python. Since then I've been following you. You are a good python teacher. But i can't see the content of your videos clearly due to the fact that I'm using my android phone to stream it.
    Can you please always zoom out your video for phone users.

  • @niyatisaxena3042
    @niyatisaxena3042 8 месяцев назад

    Mate please make a video on DefaultDict in Python. I am facing a lot of problem in that topic. Your explanation will definitely help me.

  • @SaiSiddardha
    @SaiSiddardha 8 месяцев назад

    Hi Corey I like your teaching style and I am wondering if you plan to do a machine learning course in the near future

  • @behnamheydarian9569
    @behnamheydarian9569 8 месяцев назад

    It was awesome. Thank you ❤

  • @Pythonist_01
    @Pythonist_01 8 месяцев назад +1

    Thanks Corey Shafer. Nice video, even though I'm still at 6 minutes 😅😂

  • @krzysiekkrzysiek9059
    @krzysiekkrzysiek9059 8 месяцев назад +1

    This tutorial is awesome. You do know how to teach Corey 💪👌

  • @hritikmishra5227
    @hritikmishra5227 8 месяцев назад

    hurrah corey is back😃😃😃

  • @Alain9-1
    @Alain9-1 3 месяца назад

    the Python GOAT

  • @pesallway
    @pesallway 8 месяцев назад

    Your Videos are pretty useful!!! Btw can you suggest one Python book which covers almost all topics from the language to frameworks. Thanks!

  • @xmuta
    @xmuta 8 месяцев назад +1

    Very nice

  • @237311
    @237311 8 месяцев назад

    Useful video. Can you make a video to book a campsite using selenium?

  • @bacon37460
    @bacon37460 8 месяцев назад

    Welcome back!

  • @kashifrana6798
    @kashifrana6798 8 месяцев назад

    Amazing contents. Appreciated if you can make something to work with rest API with Python (session, authentication, pagination etc) thanks 🙏

  • @seyedhamidazimidokht3569
    @seyedhamidazimidokht3569 7 месяцев назад

    Your videos are fire 🔥
    How the imports are sorted on save though? couldn't find any extension for it.

  • @abhigyanj
    @abhigyanj 8 месяцев назад

    Great video! Just curious, which computer are you using for coding?

    • @coreyms
      @coreyms  8 месяцев назад

      I’m using an iMac here. A fairly new one since my old one kicked the bucket. I also have an ASUS Windows laptop that I code on sometimes but it’s more for gaming.

  • @Hazem_001
    @Hazem_001 8 месяцев назад

    king of python

  • @ebsaumare3387
    @ebsaumare3387 8 месяцев назад

    Great thanks 🎉❤ Corey🎉🎉🎉🎉❤❤

  • @Rahul-ce9yz
    @Rahul-ce9yz 5 месяцев назад

    More project videos pleasee😊😊😊

  • @ed-salinas-97
    @ed-salinas-97 8 месяцев назад

    Trying to browse through all the comments, I don't think I saw anyone say anything about Windows. To schedule something, you typically use the Task Scheduler. Been a while since I've done it, but I don't believe it uses cron nomenclature, just drop down when you want to run your script or .bat file.

  • @mr_erving
    @mr_erving 8 месяцев назад

    Awesome man

  • @kraszken
    @kraszken 7 месяцев назад +1

    What's the reason for using selenium over playwright? With playwright you don't really need to fight with webdriver when setting things up or while browser is auto updated in your system.

  • @avijitbanik531
    @avijitbanik531 Месяц назад

    How do you get these clean print results, errors message in the dedicated output tab ? What shortcuts do you use ?

  • @xbass540
    @xbass540 2 месяца назад

    hi, your tutorials are great thanks so much for your work! Nowadays more and more website logins ask for captcha or in my case they have a Cloudflare protection, that detected that the headless Chrome is open by testing software and therefore the code was halted there. How can we overcome such protections? Is it possible? thanks again!

  • @alexanaderemeka3954
    @alexanaderemeka3954 6 месяцев назад

    Yes please, I am interested to learn if cron job is possibly run on windows

  • @ALGCoders
    @ALGCoders 8 месяцев назад

    ❤❤❤❤❤ long time

  • @porlando12
    @porlando12 8 месяцев назад

    @coreyms, are you running this cron job on a home server? I would be interested in learning more about other environments that this script could be deployed to!

  • @bluuu8684
    @bluuu8684 8 месяцев назад

    Hello Corey, what is your preference of using single quote or double quote for string?

  • @PhrostyGaming
    @PhrostyGaming 8 месяцев назад

    Cool, Couple issues I have with this:
    - You can simply just call or log into your bank and set up an auto payment for 99% of utilities.
    - It is definately not safe to keep credit card details in plain text, even if in env variables

    • @coreyms
      @coreyms  8 месяцев назад +2

      This utility is in the 1% of the exceptions. I've been able to setup autopay for everything else but this. And good point on the credit info. This script will only be located on my personal encrypted iMac, so if someone gets access to that then they'd already have enough access to steal a lot more of my information through browser sessions, etc. But you're right... there are definitely more precautions that can and should be taken when dealing with credit card info.

  • @lokiwood3730
    @lokiwood3730 7 месяцев назад +1

    sir if i have some doubts where and how can i ask ?

  • @oompfh
    @oompfh 8 месяцев назад +1

    How do you do the autosorting of the imports?

    • @oompfh
      @oompfh 8 месяцев назад

      Great video btw.

    • @coreyms
      @coreyms  8 месяцев назад +1

      Install the isort extension from Microsoft within VS Code. I then install isort via Homebrew (if your on a Mac) and then follow the settings suggestions within the isort extension info page.

  • @mimovk
    @mimovk 8 месяцев назад

    Bro I wish i had your coding skills

  • @IncomeBoost42
    @IncomeBoost42 8 месяцев назад

    About time to introduce the utility company to stripe haha

  • @artabra1019
    @artabra1019 8 месяцев назад

    Great! video do you have tutorial on automatically run python on cron jobs.

  • @ManishKumar-j3d3d
    @ManishKumar-j3d3d 8 месяцев назад

    which playlist of your video should we follow for Data analysis, can you suggest me, we are here from the suggestion of chatGPT of your video

    • @coreyms
      @coreyms  8 месяцев назад

      My Pandas series is probably the most relevant for Data Analysis

  • @pavanig2880
    @pavanig2880 8 месяцев назад

    Hi, can we validate video content and audio by using selenium? Please let me know

  • @chillydoog
    @chillydoog 8 месяцев назад

    Bro you are loco in the cabeza

  • @kumargupta7149
    @kumargupta7149 8 месяцев назад

    Very long time but thanks

  • @kedarppopuri2776
    @kedarppopuri2776 8 месяцев назад

    Corey Brother please make tutorial on python for networking

  • @EnglishRain
    @EnglishRain 8 месяцев назад

    Any reason why you did not choose Playwright?