I'm issuing a cURL GET request to a webpage to download the HTML. The webpage has scroll based content display like a Facebook timeline, i.e. initially only loads some content and then incrementally loads more as user scrolls.
I'm wondering if I can leverage JS and use something like window.scroll(0, document.height) with the cURL GET request to specify a height the page should scroll to. I know what height I need to scroll to to get the HTML I need on all webpages of the site.
My cURL request looks like the following:
curl -X GET 'https://www.mywebsite.com/username/photos' --verbose --user-agent $USER_AGENT --cookie $COOKIES --cookie-jar $COOKIES