jxeeno / aust-govt-covid19-stats Goto Github PK
View Code? Open in Web Editor NEWLicense: Creative Commons Zero v1.0 Universal
License: Creative Commons Zero v1.0 Universal
Hi jxeeno,
Seems data is missing for 6-Oct-2021.
Is it possible to fill in this gap?
It turns out that that the QLik Sense (the product which powers the graphs on the page) has a remarkably well-documented API which provides data a lot more accurately than the current scraping process using Puppeteer.
0.0014373561076329474
, but the scraped data is rounded to 0.1
aust-govt-covid19-stats/scrape.js
Lines 14 to 25 in 26790ca
Unfortunately we still need to hardcode the ID of each graph as graph titles aren't included for some reason, but these don't change often, and will still be stored in the raw data.
I'm happy to open a PR for this sometime in the next week if you'd like me to. You can see my basic implementation here.
Hi @jxeeno,
Just letting you know the scraper seems to be down at the moment. From a quick look locally it seems that the QLik server is unexpectedly saying that a few graphs in the page HTML don't exist on the server. Specifically, the right-hand row of the KPI grid is returning a null
response from the API.
The current code currently doesn't check for an undefined graph handle, which then causes it to send an invalid API request, bringing down the script once it receives an error response. I'll open a PR next year... ๐
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.