这是我想要抓取的链接: http://www.prudential.com.hk/PruServlet?module=fund&purpose=searchHistFund&fundCd=MMFU_U
为了显示网页的英文版本,请在右上角点击“English Version”标签。
网页上还有一个按钮,需要按下才能查看基金信息。如果没有按下,网页将被阻止,使用scrapy shell始终返回空[]。
<div onclick="AgreeClick()" style="width:200px; padding:8px; border:1px black solid;
background-color:#cccccc; cursor:pointer;">Confirmed</div>
AgreeClick的功能是:
function AgreeClick() {
var cookieKey = "ListFundShowDisclaimer";
SetCookie(cookieKey, "true", null);
Get("disclaimerDiv").style.display = "none";
Get("blankDiv").style.display = "none";
Get("screenDiv").style.display = "none";
//Get("contentTable").style.display = "block";
ShowDropDown();
我该如何克服这个onclick="AgreeClick()"函数以便网页可以被抓取?