This commit is contained in:
2025-11-28 05:39:23 +01:00
parent 5ab7d4f90d
commit bde45e0dc9
5 changed files with 376 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ public class TroostwijkScraper {
// HTTP client used for API calls
private final HttpClient httpClient;
private final ObjectMapper objectMapper;
private final DatabaseService db;
public final DatabaseService db;
private final NotificationService notifier;
private final ObjectDetectionService detector;
@@ -432,6 +432,7 @@ public class TroostwijkScraper {
int currentAuction = 0;
for (int saleId : auctions) {
currentAuction++;
System.out.println(" [Page " + currentAuction + "] Fetching auctions...");
System.out.println(" [" + currentAuction + "/" + totalAuctions + "] Processing sale " + saleId + "...");
scraper.fetchLotsForSale(saleId);
}
@@ -502,7 +503,7 @@ public class TroostwijkScraper {
* a SQLite database. Uses the Xerial JDBC driver which connects to
* SQLite via a URL of the form "jdbc:sqlite:path_to_file"【329850066306528†L40-L63】.
*/
static class DatabaseService {
static public class DatabaseService {
private final String url;
DatabaseService(String dbPath) {