mptwaktusolat / waktusolat-fetcher Goto Github PK
View Code? Open in Web Editor NEWFetch, process and update the database
Fetch, process and update the database
I'm attempting to get data for the next year (2024). I found out not all states have the data ready yet.
For example here, Johor have data for 2024 but Kedah not yet.
I inspected the API for Kedah:
curl --request POST \
--url 'https://www.e-solat.gov.my/index.php?r=esolatApi%2Ftakwimsolat&period=duration&zone=KDH05' \
--header 'Accept: application/json, text/plain, */*' \
--header 'content-type: multipart/form-data' \
--cookie 'TS01ca5017=01714ff3614ef2170fc18d602d08eb51fe7ea050efd0a1f3f3efc019f7086c3b9237391e32727d2b1fd4c48270b2462400b8c466e0cce6993152b806b8ae49de4a7f93f10d99404f5b374ffbe81950ce95b432e1e4; PHPSESSID=l4g77jesk61cek0lqurqpmjsjv' \
--form datestart=2024-01-01 \
--form dateend=2024-01-01
It returned the status code 200, but with the message of NO_RECORD!
. I think we need to handle this situation in the code. Maybe we can try to skip and record the states with no records instead of letting them failed.
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.