Avatar of Daniel Gillett
Daniel GillettFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

Using Puppeteer to Interact with MyVue.com Quick Book Bar

Hello,
Lately I've been spending time with puppeteer to interact with websites programatically.  

Check out myvue.com and try to interact with the quick book bar.  I'd like to iterate over each dropdown list - select one, updates the second, etc.  

I'd like to be able to go through all venues, all movies, all dates, all times.

I'm quite new to puppeteer (less than a week) so this would be very helpful to learn from.
Thank you!
Node.js* web scrapingJavaScript

Avatar of undefined
Last Comment
Daniel Gillett
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Daniel Gillett

ASKER

forgive me but, I'm good a building APIs and other web technologies, but I am not clear on what you mean (how to get started with your suggestion).  I don't see anything appearing in the consolve when I select or do anything.

However, some things Odeon has made very difficult.  My first scraper I was using, I learned that it was forbidded and would not even serve my page without passing through a captcha check.  ...that's when/how I found puppeteer.

These newer more complex websites (and web scraping in genreal) are new to me.  Crazy for me to remember that my step dad developed the first HTML editor, back in 1993!  I'm getting old.  lol
Avatar of Daniel Gillett

ASKER

I went to odeon.co.uk > dev tools > xhr tab and found the filtered listof XMLHTTPRequests.
    /api/filmdisplaytextdefault/
However, there is nothing to be returned.

I went to myview.com and tried similar.    It was helpful, but I think they are blocking me. I will also do some searches and learn what I can asap.  Many thanks.
Do you think you can help with that other data problem?  :-D
Avatar of Daniel Gillett

ASKER

very interesting.  I was able to use myvue.com's api.  Didn't find much for cineworld.
Thanks for that suggestion!
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

In teresting they seem to be monitoring the URL - the first URL (below) was the one I lifted the first time. That now redirects to the site. The second one works in all browsers so they might be doing some sort of checking.

https://www.myvue.com/data/films/10007
https://www.myvue.com/data/films/10002

Having said that - this opens the select.
$('.cinema-select-trigger')[0].click()

Open in new window

Will keep looking.
Avatar of Daniel Gillett

ASKER

Hi Julian,
Thanks.  I am able to open the first click to make the venue list pop up, show.
I can't seem to click any of the items.
They have lists of UL with LIs to show each part of the menu.
I can't seem to iterate through this to click the links and go to the next list select.

I've just tested the links you mentioned and found the same thing. I can see they have an antiClickjack script running.

User generated image
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo