Files
bookmeterplus/download_posts.php
Krzysztof Płaczek 40f2b60962 Downloading post files.
2025-08-04 09:02:50 +02:00

9 lines
446 B
PHP

<?php
if (!file_exists('public/posts_2023.json')) {
file_put_contents('public/posts_2023.json', file_get_contents('https://bookmeter.xyz/api/posts?edition=2023'));
}
if (!file_exists('public/posts_2024.json')) {
file_put_contents('public/posts_2024.json', file_get_contents('https://bookmeter.xyz/api/posts?edition=2024'));
}
file_put_contents('public/posts_2025.json', file_get_contents('https://bookmeter.xyz/api/posts?edition=2025'));