I am scraping a website and I realised the content that I need don't load onto the page initially until a click event is triggered on an element.
Obviously I didn't build the website, I have no idea how the page content actually gets updated besides clicking on the element.
Currently, my steps are:
- make a GET request to the url
- load the response data into cheerio
I wonder if I can do something like,
- make a get request to the url endpoint,
- trigger a click event with jquery or cheerio on the element somehow,
- then reload it into cheerio.
(note: the url doesn't change after the element is clicked)