updated scraping script with automatic scrolling