EdwardD
@EdwardD

Mentions

Sajeg
@Sajeg0
It's #scrapbook time. Yay! So what I can show you today isn't much. You may saw my Post yesterday where I showed the Search functionality, that I implemented in my App that searches through all of the books that my local library has. Then @EdwardD had the wonderful idea that I could save the books to a local Database instead of sending a search request to the server an then scraping all of the information from the site. Then I added the database and when I wanted to download the data from the website of my library there was one problem. It would take about 4h to update the Database and you can't do that on a phone. So I made this simple js Script: github.com/Sajeg/olibrary-db-updater/blob/master/fetchData.js that is executed through GitHub actions once a week and then the Data is being uploaded to library.sajeg.org/data.json so that my app can just download the .json file and update the local database. Now I need to wait about one hour and then finally GitHub actions is finished: github.com/Sajeg/olibrary-db-updater/actions/runs/9712662599/job/26807855608 . Here is the GitHub repo: github.com/Sajeg/olibrary-db-updater
https://imgutil.s3.us-east-2.amazonaws.com/4f9c8046e93e730312de9c4e32f3c23fda987eeec7fce522d202c352c961ec60/5619b562-f3fe-4ae2-805e-0c559e3935a5.png