How to handle tree style pagination (nested lists with collapse/expand arrows)

Can anyone suggest the best method to scrape data that has a navigation "tree"?

It's much like pagination, the data I need appears in the main content area of the site, and you load each "page" into the content area by navigating a list along the left side.

The list has multiple "levels" to it, each level is nested beneath it's parent level, with the sibling levels only appearing when you click on a small arrow on the main level. Similar to how the folder structure appears in the Windows Explorer window on the left hand side (each folder can be clicked, and the list expands, revealing a list of subfolders). Eventually once deep enough into the tree, the individual page names are listed. Clicking each one of these name causes the page with the ultimate data I need to load into the content area of the site.

I need to figure out a way to scrape the list where it'll expand each top level listing, then expand each first level, second level, etc etc, until it can't get any further. Then scrape data from each page, on and on down the list.

The "tree" isn't consistent as far as how many levels there are until you reach a data page listing, and you position within the tree (or which data page is being displayed) isn't reflected within the URL at all.. it always remains the same, regardless where you are within the tree.

Thanks in advance for any suggestions!

You need create a sitemap for navigate the site.
https://webscraper.io/how-to-videos
https://webscraper.io/tutorials
https://webscraper.io/documentation

If the site is easy try to elaborate the navigation,
if want a shorcut use the sitemap, example domain.com/sitemap.xml
create selectors from sheet and edit sitemap to add the urls are in sitemap.xml