Skip to content

andreivinaga/imdb-dataset

Repository files navigation

imdb-dataset

Parse data coming from https://www.imdb.com/interfaces/

This library works only with .tsv files, it will read the file line by line and return a mapped object.

List with types of objects

List with parsers

List with parsers

Usage:

import {
  ITitleRating,
  mappedTitleBasic,
  TSVParser,
} from 'imdb-dataset';

const parser = new TSVParser<ITitleRating>({
  filePath: '<absolute-file-path>.tsv',
  columns: mappedTitleBasic,
});

async function test() {
  for await (const rating of parser) {
    console.log(rating);
  }
}

test().catch(console.log);

Releases

No releases published

Packages

No packages published