Ich habe folgendes Element:Erste Javascript Postbacks Parameter mit scrapy
<a class="html-attribute-value html-external-link" target="_blank" href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ResultsGrid$15", "", false, "", "webproperty.aspx?s=id&s=15&time=201606080118012&", false, true))'>javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ucResultsGrid$R000000015&quot;, &quot;&quot;, false, &quot;&quot;, &quot;webprop.aspx?s=id&amp;sr=15&amp;time=201606080118012&amp;id=15&quot;, false, true))</a>
Ich möchte die JavaScript-Parameter zu erhalten, um zu versuchen, die Anfrage durch einen Klick auf einen Link erzeugt zu rekonstruieren. Ich habe das gefunden:
response.selector.xpath('//*[@id="ResultsGrid$15"]/@href').extract()
Out[20]: [u'javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ResultsGrid$15", "", false, "", "webproperty.aspx?s=id&sdata=15&time=201606080037034&id=15", false, true))']
Das sieht gut aus und dekodiert die Javascript-Parameter. Wie greife ich sie von dort?
Vielen Dank! – user61629