I have a number of monthly manual tasks that I could not automate so far.
One of them is getting PDF from login-protected websites, saving them in specific folders with naming conventions (renaming etc.) and uploading those to my nextcloud.
The script below is for my Electricity Provider's PDFs. They are behind a simple login form (user & pw) and uploaded for the past 6 months. I always forget to check regularly enough to download all.
Two key takeaways:
- Use
selenium/standalone-chrome
Docker image