Web page scraper: click javascript button

I am trying to clear a web page and get the data that I need to click on a button. This is the button source code:

"a class =" press-me_btn "href =" javascript: void (NewPage ['DemoPage']. startDemo ()); "id =" js_press-me_btn "> PRESS ME

Is it possible to β€œclick” a button anyway without using a browser? either using wget with the -post-data argument, or maybe with a little python, ruby, perl, etc.?

Any ideas appreciated!

+3
source share
2 answers

, , , js-, href:

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

iMacros -, . Perl, Ruby ..

Linux, / iMacros Firefox.

+1

Source: https://habr.com/ru/post/1767789/


All Articles