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
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!
I literally have the capability and never even thought about this 😂😂
GOOD STUFF !
😂😂😂
Love your detail!
Inspiring video like this is never too long. In fact, I enjoyed every second of it.
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 👍
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
I've been wanting to text myself forever and only found paid services. Thank you so much for showing the free way.
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!
That's awesome! Thanks for sharing!
Bruh I spent the whole of last week looking for good videos on Selenium and you release it after I finish everything 😭😭
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.
Please do, it'll be very helpful
I agree@@olamideyakublateef2481
Same. I was also setting up a GitHub Actions and selenium to scrape, download and upload data
@@coreymswhen will you post more python videos?
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
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.
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!
I started my development journey with your Django blog playlist. Cool to see you posting new content.
Corey is the Python GOAT
Dude! Excellent thorough tutorial. Love your coding style. Welcome back and thanks for sharing your super valuable wisdom and knowledge!
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.
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!
@@coreyms Thank you so much
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!
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.
Missed you! I m following you for years!!
Hi Corey, l'm glad that you make new videos! I pray for you.
最近的工作是使用Excel 的VBA搭配 Selenium開發 Robotic process automation (RPA)專案, 畢竟辦公室裡每個人都有Excel 及Web Application環境, 謝謝您精彩且流暢的影片, 學到很多可以套用的技巧 🙏
Good to have you back Corey. I‘m really looking Forward to more Videos in the future. 😊
Good to see you doing stuff. Built my first Django site via your tutorials 👍
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 😍👏👏
I'm so joyful seeing this. I've missed your contents.
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
.
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
Good to see you are back. You are an amazing teacher.
I look forward to new Corey Schafer videos more than the super bowl.
The legend is back! Thank you Corey!
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😊
Nice to see new content from you. Thank you so much! ❤❤❤❤
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
Feels like I'm back in grad school all over again getting to watch a brand new Corey Schafer video!
Who is here after new tutorial on pathlib by this awesome dude.
Please keep updating this will help me a lot in my studies
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 :)
Coreyyyyyyyyyyyyyy
Been some 4/5 years I discovered this channel❤
The "hey there"😭
Thanks Cory. You've been our python eyes.
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🙏🙏👌👌
Very complete tutorial. Thank you very much for the details!
dude. your videos are always the best
Nice! Thanks for sharing, hope you're doing well. Have a great weekend!
Thanks! You too!
Legend is back ❤
Good to see you again ! Great Video!
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.
When did this happen? Do you mean you do not have to install chromedrivers anymore?
@@Lsteve24 yes. Just use driver = webdriver.Chrome()
Hi Corey, Thanks for coming back.
Is it possible for you to make video on weak references, descriptors, class abc(meta classes)
Simple and clear as usual.
Super helpful to go through an actual case
Thanks for posting and educating us 🤗blessings🌟
Anytime! Thanks for learning!
视频很棒❤,完整的看完了🎉,我自学python看的就是你视频,至今仍保存在电脑💻里面,也很喜欢你的英文发音,顺便学习一下英文听力😊,非常感谢
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.
Corey please create a complete dedicated playlist for selenium just like your python playlist
You are amazing !!!!!! Thank you for everything.
Very useful! Thank you so much Corey. 🙏
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.
Another great video, Thank You !
I am looking forward to fastapi tutorials from you Corey
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.
Great, great video. Thank you.
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
The legend is back
The goat ladies and gentlemen 🐐
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.
I didn't realize that. Thanks for the info! Spammers gotta ruin everything. This is why we can't have nice things.
amazing, thank you💥💥
The king is back
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.
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.
Hi Corey I like your teaching style and I am wondering if you plan to do a machine learning course in the near future
It was awesome. Thank you ❤
Thanks Corey Shafer. Nice video, even though I'm still at 6 minutes 😅😂
This tutorial is awesome. You do know how to teach Corey 💪👌
hurrah corey is back😃😃😃
the Python GOAT
Your Videos are pretty useful!!! Btw can you suggest one Python book which covers almost all topics from the language to frameworks. Thanks!
Very nice
Useful video. Can you make a video to book a campsite using selenium?
Welcome back!
Amazing contents. Appreciated if you can make something to work with rest API with Python (session, authentication, pagination etc) thanks 🙏
Your videos are fire 🔥
How the imports are sorted on save though? couldn't find any extension for it.
Great video! Just curious, which computer are you using for coding?
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.
king of python
Great thanks 🎉❤ Corey🎉🎉🎉🎉❤❤
More project videos pleasee😊😊😊
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.
Awesome man
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.
How do you get these clean print results, errors message in the dedicated output tab ? What shortcuts do you use ?
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!
Yes please, I am interested to learn if cron job is possibly run on windows
❤❤❤❤❤ long time
@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!
Hello Corey, what is your preference of using single quote or double quote for string?
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
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.
sir if i have some doubts where and how can i ask ?
How do you do the autosorting of the imports?
Great video btw.
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.
Bro I wish i had your coding skills
About time to introduce the utility company to stripe haha
Great! video do you have tutorial on automatically run python on cron jobs.
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
My Pandas series is probably the most relevant for Data Analysis
Hi, can we validate video content and audio by using selenium? Please let me know
Bro you are loco in the cabeza
Very long time but thanks
Corey Brother please make tutorial on python for networking
Any reason why you did not choose Playwright?