Back to Top

movie-scrapper master

NodeJS movie scrapper lib on server side

new Extender()

The class with useful functions

Returns

Void

new MovieItem()

The class with the movie data

Returns

Void

MovieItem.constructor(title, thumbnail, href)

construct the Item class

Parameters

Name Type Description
title String
  • The movie's title
thumbnail String
  • The movie's thumbnail image url
href String
  • The movie link url

Returns

Void

new Srapper()

The class that will be used to scrape and parse data

Returns

Void

Srapper.constructor(config)

construct the Scrapper class

Parameters

Name Type Description
config Object
config.base String
  • the website's hostname
config.searchSyntax String
  • search url
config.genreSyntax String
  • genre url
config.selector String
  • selector object for scrapping (required)
config.genres Array
  • genres array
config.series String
  • the tv series page
config.movies String
  • the movies page
config.home String
  • The home page

Returns

Void

movieItem(document)

Gets all of the movie items/cards

Parameters

Name Type Description
document Document
  • The website's document elment

Returns

Array.<object>

  • the items as Arrays of objects

parse(text)

Parses the data to json

Parameters

Name Type Description
text String
  • the site's data

Returns

Object

  • the parsed json site data