adizafri2000 / billscraper Goto Github PK
View Code? Open in Web Editor NEWSample headless automation project to scrape bills, calculate monthly bill (rent + utilities) and generate a text message which is later sent to desired whatsapp recipients.
Sample headless automation project to scrape bills, calculate monthly bill (rent + utilities) and generate a text message which is later sent to desired whatsapp recipients.
(personal problem) I don't want to have to develop using 2 different Python versions in my laptop ...
When the automation executes, it should check whether the installment is going to be paid for its last month on the current run. If yes, after calculation or anywhere suitable, update the row of the installment to have its is_active
column set to FALSE
.
Suggested algo:
start_date
+ period
.is_active
column to FALSE
.Currently, when bill statements are calculated and generated, some of the items are actually charges for the previous month while the others are for the current month. For example:
This column is important especially when a resident leaves on the start of a month, it can be confusing to split the bills as we have to remember and find out which items of the bill are previous-month charges and which are current-month charges.
Suggested solution:
is_previous_month_charge
(or current month) to contain boolean values.TRUE
while the others set to FALSE
.There is no application or use for this feature in the automation's calculations yet, but for manual checking it is very helpful to have such records.
In the case of elements not found etc., webdriver will save the page source via driver.page_source
and upload to a bucket on Supabase. This is just to log current HTML state of the visited webpages on error encounters
After executing workflows numerous times and still failing, I resorted to saving screenshots to my Supabase bucket (that of which the screenshot logic has problems initially in the workflow, but now somewhat fixed). The reason the webdriver was not able to find any popups or login inputs was due to the cloudflare prompt page shown upon reaching TNB Portal.
Aim to release v1.0.0. Must contain at least:
After several runs on Actions, it is safe to say that the automation will fail due to encountering 403 Forbidden error. Try this out.
Study and test:
api/health
Remove unnecessary steps from all workflow files after checking
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.