Rijksmuseum's online collection is amazing but their search defaults do not suit me.
This script automates searching using my favourite options (restrict to prints, visible online)
- Translates English search terms into Dutch
- Opens the Rijksmuseum search results directly in your browser
- Python 3.6+: Ensure Python is installed on your machine. Check with:
python --version
- Dependencies: Install the required Python packages by running:
pip install -r requirements.txt
-
Run the Script: Pass your search terms in English from the command line.
python rijks_search.py "your search term here"
Example:
python rijks_search.py "still life painting"
-
Output: The script will automatically:
- Translate the search term into Dutch
- Open your default browser with the Rijksmuseum search results for the translated term
python rijks_search.py "still life with flowers"
This command will:
- Translate "still life with flowers" to Dutch
- Open the translated query in your default browser in the Rijksmuseum search
- Translation Issues: Ensure the
translate
package is installed and working properly. - Browser Issues: The script uses the default browser set on your macOS system. Check your browser settings if the script fails to open the URL.
This project is MIT licensed and provided as-is.