python - Use ghost.py to click a link linking to a javascript -
i have link (http://bank.hangseng.com/1/pa_1_1_p1/comsvlet_minisite_eng_gif?app=einvcfunddetailsov&pri_fund_code=u44217) learning extract data inside using python, have come ghost.py
.
i want click i agree
, not hyperlink, click activating javascript, , bring me page need.
i want use:
page, resources = ghost.evaluate( "document.getelementbyid('link').click();", expect_loading=true)
as suggested http://jeanphix.me/ghost.py/, checking source found link not have id
.
is possible, , if yes, how can use ghost.py
extract page?
that button calls global agree
function. can this:
page, resources = ghost.evaluate("agree()", expect_loading=true)
Comments
Post a Comment