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!
npm install gollum-nocinema
Or just clone this project.
- Cinemark (CinemarkCrawler): http://cinemark.com.br
- Cinesystem (CinesystemCrawler): http://cinesystem.com.br
- Cinespaço (CinespacoCrawler): http://cinespaco.com.br
And others under construction, contribute.
Avaliable two ways to use Gollum Crawlers, both cases return a Promise
.
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);
});
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);
});
- Fork this project
- Create your branch
- Send your PR
Any doubt, contact me.
MIT @ Luís Fernando Guedes