https://github.com/mfa/imdb-to-sqlite
convert IMDB ratings CSV to SQLite
https://github.com/mfa/imdb-to-sqlite
datasette sqlite
Last synced: about 2 months ago
JSON representation
convert IMDB ratings CSV to SQLite
- Host: GitHub
- URL: https://github.com/mfa/imdb-to-sqlite
- Owner: mfa
- License: apache-2.0
- Created: 2021-01-17T11:37:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-31T15:33:12.000Z (over 4 years ago)
- Last Synced: 2025-02-07T14:22:35.355Z (over 1 year ago)
- Topics: datasette, sqlite
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## IMDB ratings to sqlite

## About
Convert the IMDB ratings CSV file into a sqlite database for easy usage with [Datasette](https://github.com/simonw/datasette).
## Why?
What does this converter do differently than [csvs-to-sqlite](https://github.com/simonw/csvs-to-sqlite)?
- `genre` and `directors` are array fields
- additional fields for faceting: `year_rated`, `weekday_rated`
## Download data
On the "Your Ratings" page in the "three horizontal dots menu" on top of the table you can download your personal CSV file.
## Install
```
python setup.py install
```
## Convert CSV file
```
imdb-to-sqlite convert imdb-ratings.db imdb-ratings.csv
```
## Use with Datasette
install Datasette:
```
pip install datasette
```
run with Datasette:
```
datasette imdb-ratings.db
```
## Thanks
[Simon Willison](https://simonwillison.net/) for Datasette and sqlite-utils.