'Scrapy - access a JS Postback Table only with scrapy

I need to access a table that is loaded after pressing a button with a JavaScript PostbackWithOption. I think I am using the incorrect request, because the table is not loading. Any advice is well received

The table is under the "Transfers" window in this link https://www83.hattrick.org/en-us/Club/Players/Player.aspx?playerId=469061287

Table

enter image description here

I have been able to scrap different webs using postback, but this time, after running the FormRequest, the table is not loaded, and there is some "new information" and some other information missing too (check that the image below is different)

Page loaded enter image description here

This is the code I am using now:

def transf_tab(self,response):
    open_in_browser(response)
    #javascript: WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl00$CPContent$CPMain$btnViewTransferHistory", "", true, "", "", false, true))
    transfToken = response.xpath('//*[@id="__VIEWSTATE"]/@value').extract_first()
    target ="ctl00$ctl00$CPContent$CPMain$btnViewTransferHistory"
    # viewstategen = "0C55417A"
    data = {'__EVENTTARGET': target,'__VIEWSTATE': transfToken},
    return FormRequest(url=response.url,
                     method= 'POST',
                     formdata=data,
                     dont_filter= True,
                     callback=self.parse_player)

def parse_player(self, response):
    open_in_browser(response)
    trsf_item = HtsellsItem()


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source