A web scraper library for AFA Cinemas
npm install afacinemas
import { getTheaters, getReleases } from 'afacinemas';
Promise.all([getTheaters(), getReleases()]).then(([theaters, releases]) => {
console.log(theaters);
console.log(releases);
});
const { getTheaters, getReleases } = require('afacinemas');
Promise.all([getTheaters(), getReleases()]).then(([theaters, releases]) => {
console.log(theaters);
console.log(releases);
});
Fetches the list of theaters.
import { getTheaters } from 'afacinemas';
getTheaters().then(theaters => {
console.log(theaters);
});
Fetches the list of next releases.
import { getReleases } from 'afacinemas';
getReleases().then(releases => {
console.log(releases);
});
Fetches the list of sessions for a given theater and date.
import { getSessions } from 'afacinemas';
getSessions(12, '2023-09-20').then(sessions => {
console.log(sessions);
});