An app to get information about local cinema screenings.
- Python >= 3.10
- pip
- Clone the repository
git clone {repository_url}- Navigate to the project directory:
cd nowonscreen- Install the required dependencies:
python3 -m pip install -r requirements.txt- Create a
.envfile in the root with the following environmental variable or export it manually:
GEMINI_API_KEY="YOUR_GEMINI_API_KEY"You can get an API key here.
To run the NowOnScreen app, use the following command:
python3 nowonscreen.py [-d {today,tomorrow}] [-c {phenomena, malda, filmoteca}]-d,--date: Target date for the screenings. Options aretodayortomorrow. If not provided, default is all week.-c,--cinema: Name of the cinema. Options arephenomena,maldaandfilmoteca. If not provided, default is all cinemas.
To get today's screenings at Phenomena:
python3 nowonscreen.py -d today -c phenomenaTo get tomorrow's screenings at all cinemas:
python3 nowonscreen.py -d tomorrowTo get this week's screenings at Filmoteca de Catalunya:
python3 nowonscreen.py -c filmotecaTo run the tests run the following command from root:
python3 tester.pyYou can also specify the modality of example selection for the dynamic prompt (static, random, similarity, default is static):
python3 tester.py -m randomor
python3 tester.py --mode random