I searched in SO first, and found this question. How to click a link that has javascript:__doPostBack in href? but it gives the answer in python only.
What I need is, when go through a website, some pages (2,3,4, etc) with links like below:
javascript:__doPostBack('AspNetPager1','2')
javascript:__doPostBack('AspNetPager1','3')
javascript:__doPostBack('AspNetPager1','4')
If I click it, and it will display the next page, but the real url isn't displayed in browser.
So my questions is, how can I convert the javascript link into traceable real url and feed to wget/curl/lynx
?
My purpose is to use the tools (wget/curl/lynx) to download these pages one by one by scripting. But because of these javascript:__doPostBack
, I can't find a good way to do it.