T
T
theWaR_132017-08-03 14:33:29
Python
theWaR_13, 2017-08-03 14:33:29

How to get page by request and execute JS?

Good afternoon. I need to get a page via url that has reCaptcha in it. Initially, I tried writing a python script and fetching a page using requests, but it happened as expected - it does not execute the JS code and reCaptcha does not appear on the page. After that, I decided to use Selenium, it does its job, but I don’t want to drag it in dependencies, because in addition to running the script, users will have to manually install chromedriver for it (correct if I’m wrong). Maybe someone knows a way how this action can be done through NodeJS? I know there is a jsdom library, but reCaptcha binds to the URL of the page and I doubt it will work correctly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nicholas, 2017-08-03
@healqq

phantomJS can be used for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question