📚 Onleihe Checker

Chrome Extension für deutsche digitale Bibliotheken

⛔ Onleihe Checker is discontinued

Onleihe did not consent to the use of its interface, and Onleihe libraries are moving to Libby over the coming year. The extension is no longer developed and will be removed from the stores.

The final version 1.3 no longer checks titles and can be uninstalled. The content of these pages describes older versions and is kept for documentation only. Please do not use the code to access the Onleihe interface without consent.

⚙️ Technische Details

Projektstruktur

root/
├── OnleiheScraper           # Onleihe Scraper
│   ├── clean_base_urls.py   # URL-Bereinigung
│   └── scrape_onleihe.py    # Haupt-Scraping-Skript
├── OnleiheChecker/          # Chrome Extension
│   ├── manifest.json        # Extension-Konfiguration
│   ├── popup.html           # Popup-Interface
│   ├── popup.js             # Popup-Funktionalität
│   ├── content.js           # Amazon-Integration
│   ├── background.js        # Service Worker
│   └── libraries.json       # Bibliotheksdatenbank
└── docs/                    # GitHub Pages

Scraper-Konfiguration

Debug-Modus aktivieren

# Zeile auskommentieren für sichtbaren Browser
chrome_options.add_argument('--headless')

Timeouts anpassen

# Für langsamere Verbindungen
WebDriverWait(driver, 20)

Extension-Einstellungen

Local Storage zurücksetzen

  1. Rechtsklick auf Extension-Icon → “Inspect popup”
  2. Application → Local Storage öffnen
  3. selectedOnleiheLibraryURL und selectedOnleiheLibraryName löschen

Wartung

# Bibliotheksdaten aktualisieren
python scrape_onleihe.py && python clean_base_urls.py

# Extension-Datenbank aktualisieren
cp libraries.json OnleiheChecker/
← Zurück zur Hauptseite