gollum-nocinema

0.3.0 • Public • Published

Build Status

Gollum

Gollum is specialized crawler in cinemas sites. Cinema schedules is my precious.

The propposal of this project is return the JSON of crawled cinema for anything. Be creative!

Installing

npm install gollum-nocinema

Or just clone this project.

Avaliable Crawlers

And others under construction, contribute.

Using

Avaliable two ways to use Gollum Crawlers, both cases return a Promise.

Pass url as argument

let CinemarkCrawler = require('gollum-nocinema').CinemarkCrawler;
let url = 'http://cinemark.com.br/programacao/florianopolis/floripa-shopping/24/703'; // valid cinemark url
 
CinemarkCrawler
    .getScheduleByUrl(url)
        .then(function(schedule) {
            console.log('Schedule of Cinemark in JSON: ', schedule);
        })
        .catch(function(err) {
            console.log(err);
        });

Pass city and place as arguments

let CinemarkCrawler = require('gollum-nocinema').CinemarkCrawler;
 
CinemarkCrawler
    .getScheduleByCityAndPlace('florianopolis', 'floripa shopping')
        .then(function(schedule) {
            console.log('Schedule of Cinemark in JSON: ', schedule);
        })
        .catch(function(err) {
            console.log(err);
        });

Contribute

  • Fork this project
  • Create your branch
  • Send your PR

Any doubt, contact me.

License

MIT @ Luís Fernando Guedes

Package Sidebar

Install

npm i gollum-nocinema

Weekly Downloads

2

Version

0.3.0

License

ISC

Last publish

Collaborators

  • fguedes