https://github.com/third774/movie-night-data
https://github.com/third774/movie-night-data
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/third774/movie-night-data
- Owner: third774
- License: apache-2.0
- Created: 2019-07-15T03:17:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T04:31:24.000Z (about 3 years ago)
- Last Synced: 2025-01-13T07:24:55.869Z (about 1 year ago)
- Language: TypeScript
- Size: 1.5 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE_APACHE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Movie Night Data Worker
Powers the [data visualization found here](https://observablehq.com/d/3eec4121b807b199).
A Cloudflare worker for fetching movie meta data from the Google Sheets API. Just enter the movie `title` and optionally `year` and the metadata will be automatically fetched and populated by the worker.
| title | released | watched | theme | showing | imdbId | metaData |
| ------------ | -------- | -------- | -------- | ------- | --------- | -------------------- |
| Blade Runner | 1982 | 12/13/15 | Neo-noir | primary | tt0083658 | { ...IMDb metadata } |
## Setup
Needs a `.env` file with the following variables:
```
OMDB_API_KEY=
SPREADSHEET_ID=
```
and a `credentials.json` file for a [Google Service Account](https://cloud.google.com/iam/docs/service-accounts) that should look like this:
```json
{
"type": "service_account",
"project_id": "...",
"private_key_id": "...",
"private_key": "...",
"client_email": "...",
"client_id": "...",
"auth_uri": "...",
"token_uri": "...",
"auth_provider_x509_cert_url": "...",
"client_x509_cert_url": "..."
}
```