https://github.com/managedkaos/oreilly-book-searcher
A Python application that uses the O'Reilly API to search for book metadata.
https://github.com/managedkaos/oreilly-book-searcher
Last synced: 9 months ago
JSON representation
A Python application that uses the O'Reilly API to search for book metadata.
- Host: GitHub
- URL: https://github.com/managedkaos/oreilly-book-searcher
- Owner: managedkaos
- License: mit
- Created: 2025-04-18T21:13:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-19T00:44:43.000Z (about 1 year ago)
- Last Synced: 2025-09-11T08:45:54.055Z (10 months ago)
- Language: Python
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# O'Reilly Book Searcher
A Python application that uses the O'Reilly API to search for book metadata.
## Usage
1. Create a file named `titles.txt` in the same directory as the script. This file should contain a list of book titles separated by newlines. For example:
```text
Building Multi-Tenant SaaS Architectures
Software Architecture Patterns, 2nd Edition
```
1. Create a directory named `data` in the same directory as the `titles.txt` file. This directory will be used to store the downloaded book metadata.
```bash
mkdir ./data
```
1. Run the application using Docker.
```bash
docker run -it --rm -e DEBUG=True -e USE_CACHE=True \
--volume ${PWD}/titles.txt:/work/titles.txt:ro \
--volume ${PWD}/data:/work/data \
ghcr.io/managedkaos/oreilly-book-searcher:main \
```
_NOTE: The `DEBUG` and `USE_CACHE` environment variables are optional. If `DEBUG` is set to `True`, the application will print debug information to the console. If `USE_CACHE` is set to `True`, the application will use cached data if available._
1. Output is written to STDOUT and saved in `./data/publication_dates.json`.