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.

enter image description here

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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -