-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update mirrors DB #12
Comments
What do you think about providing a command line interface for this?
This way, it can be run externally by an admin or scheduled to be run periodically via cron |
Sure! As long as we also have the ability to run it via code (still not clear how this will be trigered in prod) |
Perhaps, in the code, it can check if there are any rows in the table. If there are none, it will involve the function behind the CLI. Subsequent updates would be done externally or via a scheduler |
👍 |
We will need to exclude the israeli mirror (it doesn't have the speedtest file) |
We need to initialize our DB (#6) with mirrors information and we'll also need to update them periodically.
For this, we should rely on the online list of mirrors that we have.
https://download.kiwix.org/mirrors.html
It's in HTML format but all information can be extracted easily.
Let's use the URL's hostname as ID for now and also assume that any DB mirror not found in the page should be marked disabled
The text was updated successfully, but these errors were encountered: