Emulate javascript _dopostback in python, web scraping

Here LINK it is suggested that it is possible to “Figure out what the JavaScript is doing and emulate it in your Python code: ” This is what I would like help doing ie my question. How do I emulate javascript:__doPostBack ?

Code from a website (full page source here LINK:

<a style="color: Black;" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$gvSearchResults','Page$2')">2</a>

Of course I have basically know idea where to go from here.

Thanks in advance for your help and ideas

Ok there are lots of posts asking how to CLICK a javascript button when web scrapping with python libraries mechanize, beautifulsoup….,similar. I see a lot of “that is not supported” responses use THIS non python solution. I think a python solution to this problem would be of great benefit to many. In that light I am not looking for answers like use x,y or z which are not python code or require interacting with a browser.

3 thoughts on “Emulate javascript _dopostback in python, web scraping”