const axios = require('axios');
const cheerio = require('cheerio');

axios.get('https://www.cineby.at/search?keyword=Obsession', {
  headers: {'User-Agent': 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'}
}).then(res => {
  const $ = cheerio.load(res.data);
  const nextData = JSON.parse($('#__NEXT_DATA__').html());
  console.log('Keys:', Object.keys(nextData.props.pageProps));
  console.log('Results:', nextData.props.pageProps.results?.map(m => m.title));
}).catch(console.error);
