S
S
sbh2018-02-24 06:26:02
Python
sbh, 2018-02-24 06:26:02

How to parse a page in Python3 containing JS?

The essence of the question is that the link to the page is generated dynamically by the JS code.
How to load a page by executing JS in Python3?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Doniy, 2018-02-24
@doniys_a

selenium
Here's the link:
https://medium.com/@hoppy/how-to-test-or-scrape-ja...
Or any other engine that uses acceptance testing, you won't get js to run using Python alone.

D
Dimonchik, 2018-02-24
@dimonchik2013

if ajax - easier directly
if react - haha

V
Vladimir, 2018-02-24
@vintello

now chrome and fox can make headless. why not take advantage of this?

chrome --headless --disable-gpu --dump-dom https://www.chromestatus.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question