开发者

Web page scraping: press javascript button

I am trying to scrape a web page and to recieve the data i need to press a button. This is the source code for the button:

"a class="press-me_btn" href="javascript:void( Ne开发者_Go百科wPage['DemoPage'].startDemo() );" id="js_press-me_btn">PRESS ME

Is it possible to "press" the button somehow without using a browser? either by using wget with the --post-data argument or maybe a small python, ruby, perl etc. application?

Any ideas are appreciated!


In this case these is not a button, it is an anchor element, i think that you will need to run the js code, that is in the href attribute:

javascript:void( NewPage['DemoPage'].startDemo() );
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜