Mort integrates with TMDB for movie data. An IMDB extractor would provide complementary data (user ratings, box office, trivia) and could power mortbux prediction markets on movie scores or box office performance.
Proposed API
packageimdbtypeMoviestruct{IDstring// e.g. "tt1234567"TitlestringYearintRatingfloat64// IMDB score (0-10)VotesintRuntimestringGenres[]stringDirectorstringCast[]stringPlotstringPosterURLstringBoxOfficestring// e.g. "$200,000,000"}typeConfigstruct{}varDefaultConfig=Config{}func(cConfig)GetMovie(ctxcontext.Context,bextractor.Browser,idstring)(*Movie,error)func(cConfig)Search(ctxcontext.Context,bextractor.Browser,querystring)([]Movie,error)
URL Patterns
Movie page: https://www.imdb.com/title/{id}/
Search: https://www.imdb.com/find/?q={query}
Benefits
Mort could offer .imdb command for quick movie lookups
Powers mortbux prediction markets ("Will this movie score above 7.0?")
Complements existing TMDB integration with user ratings and box office data
## Description
Mort integrates with TMDB for movie data. An IMDB extractor would provide complementary data (user ratings, box office, trivia) and could power mortbux prediction markets on movie scores or box office performance.
## Proposed API
```go
package imdb
type Movie struct {
ID string // e.g. "tt1234567"
Title string
Year int
Rating float64 // IMDB score (0-10)
Votes int
Runtime string
Genres []string
Director string
Cast []string
Plot string
PosterURL string
BoxOffice string // e.g. "$200,000,000"
}
type Config struct{}
var DefaultConfig = Config{}
func (c Config) GetMovie(ctx context.Context, b extractor.Browser, id string) (*Movie, error)
func (c Config) Search(ctx context.Context, b extractor.Browser, query string) ([]Movie, error)
```
## URL Patterns
- Movie page: `https://www.imdb.com/title/{id}/`
- Search: `https://www.imdb.com/find/?q={query}`
## Benefits
- Mort could offer `.imdb` command for quick movie lookups
- Powers mortbux prediction markets ("Will this movie score above 7.0?")
- Complements existing TMDB integration with user ratings and box office data
Implemented in PR #49. Added sites/imdb package with GetMovie() (by IMDB ID) and Search() (by query). Extracts title, year, rating, votes, runtime, genres, director, cast, plot, poster, and box office. Uses JSON-LD parsing for Movie/TVSeries/TVMiniSeries types with DOM fallback. Full mock-based test coverage.
Implemented in PR #49. Added `sites/imdb` package with `GetMovie()` (by IMDB ID) and `Search()` (by query). Extracts title, year, rating, votes, runtime, genres, director, cast, plot, poster, and box office. Uses JSON-LD parsing for Movie/TVSeries/TVMiniSeries types with DOM fallback. Full mock-based test coverage.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Description
Mort integrates with TMDB for movie data. An IMDB extractor would provide complementary data (user ratings, box office, trivia) and could power mortbux prediction markets on movie scores or box office performance.
Proposed API
URL Patterns
https://www.imdb.com/title/{id}/https://www.imdb.com/find/?q={query}Benefits
.imdbcommand for quick movie lookupsImplemented in PR #49. Added
sites/imdbpackage withGetMovie()(by IMDB ID) andSearch()(by query). Extracts title, year, rating, votes, runtime, genres, director, cast, plot, poster, and box office. Uses JSON-LD parsing for Movie/TVSeries/TVMiniSeries types with DOM fallback. Full mock-based test coverage.