'Scraping an ASP page with a select input
I'm trying to scrape an ASP page that has a dropdown input which changes data on the page after an option is selected. I know that when I select an option on the input, it sends a new POST request that gets the new data. But every time I try to reproduce the request on my code I fail.
While reproducing the request I tried to fill it with these values:
__VIEWSTATE: page viewstate copied from inspecting the request in the browser
__VIEWSTATEGENERATOR: value copied from inspecting the request in the browser
__EVENTTARGET: ctl00$MasterPlaceHolder$uc_EL$DropDownList_Year (The name attribute of the input element)
ctl00$MasterPlaceHolder$uc_EL$DropDownList_Year: The value I wanted to select, which is one of the options in the dropdown
But what happens is that the request is not processed successfully and I get an error page. Any Ideas of what else I could try or look for?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
