Added downloading posts into json files, filtering by year.

This commit is contained in:
Krzysztof Płaczek
2025-07-31 16:37:16 +02:00
parent ce08be27a7
commit 01c3f59085
3 changed files with 51 additions and 45 deletions

5
download_posts.php Normal file
View File

@@ -0,0 +1,5 @@
<?php
file_put_contents('public/posts_2023.json',file_get_contents('https://bookmeter.xyz/api/posts?edition=2023'));
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'));