How to scrape Data from an expandable data table

Hi I am trying to scrape data from an e-learning website where my scrape pattern should be as below:

-Scrape names for all the video courses available
-for each video course open the url associated and fetch Table of contents

Now in order to fetch the TOC bot should first scrape module name and then what topics each module consists of.

The problem is, when go to URL associated to each course and click on table of contents, you will find the data is in form of expandable menu where each module should be clicked upon to expand the table of content.

Can anyone help me do this?

check this -

Regards,
Karthik Byggari

4 Likes