In general, the idea behind the code is to load the html inclusive javascript content of a website in the first function and scraping the html in a second function with beau