0.3.0 • Published 7 years ago
gollum-nocinema v0.3.0
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
- Cinemark (CinemarkCrawler): http://cinemark.com.br
- Cinesystem (CinesystemCrawler): http://cinesystem.com.br
- Cinespaço (CinespacoCrawler): http://cinespaco.com.br
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