3

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( NewPage['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!

1 Answer 1

1

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() );
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.