Python script to hands-free download all audiobooks on loan from library BorrowBox account.
This script automates the process of downloading books from BorrowBox. It uses Selenium WebDriver to log into BorrowBox, navigate to the "My Loans" page, and download all books.
- Python 3
- Selenium
- ChromeDriver
- WebDriver Manager for Python
-
Install the required Python packages:
pip install selenium webdriver_manager coverage
-
Replace
<Library Card Number>
and<Pass Code>
in thelogin
function with your actual BorrowBox library card number and pass code. -
Run the script:
python scrape_borrowbox_books.py
The script will log into BorrowBox, navigate to the "My Loans" page, and download all books. The books will be downloaded to the default download directory of your Chrome browser.
The script includes a unit tests. To run them, use the following command:
```
python -m unittest test_scrape_borrowbox_books.py
```