P
P
programmer01012018-03-09 15:19:27
linux
programmer0101, 2018-03-09 15:19:27

How to get the page code after executing JavaScript on it through the OS command line?

I tried such options as:
phontomjs - the page is saved in a static form, it works like curl
google-chrome --headless - the page is saved, but JavaScript is only executed for a couple of seconds, and the rest of the content does not have time to load.
selenium - too complicated and not clear, forms large chains

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2018-03-09
@saboteur_kiev

JavaScript is not executed on the page, but in the browser.
That is, the browser is the platform that is needed.
Conclusion - learn selenium. Well, or try to study some clicker for writing a wrapper for the browser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question