I am currently attempting to extract intraday prices for a specific company from the website Enel Intraday. The issue I am facing is that when the data is fetched, it is spread across hundreds of pages, making it extremely time-consuming to gather all the necessary information. I have been experimenting with the Insomnia REST client in an attempt to manipulate the URL GET request or locate the JavaScript function responsible for generating the table values, however, my efforts have been futile thus far.
Upon inspecting the search button on the website, I discovered that the JavaScript function being triggered is named "searchIntraday" and requires input from a form labeled "intraday_form."
https://i.sstatic.net/dirmr.png
My goal is to acquire the following data in a single call instead of navigating through numerous tab pages. Ideally, a complete day's worth of data would resemble the following:
Time Last Trade Price Var % Last Volume Type
5:40:49 PM 7.855 -2.88 570 AT
5:38:17 PM 7.855 -2.88 300 AT
...
9:00:07 AM 8.1 0.15 933,945 UT
This process involves iterating through pages 1 to 1017 for each individual day!
For assistance, I have referred to resources such as:
Article on Scraping with JavaScript
Similar Issue on Stack Overflow with Solution