Python javascript Crawling without web page selenium rendered

Asked 2 years ago, Updated 2 years ago, 52 views

Is it possible to crawl without selenium on the web page where python javascript is rendered? Selenium is taking too long. I'm looking for an efficient way.

python crawling

2022-09-21 19:21

1 Answers

There are a lot of crawling questions these days

You can think at a common sense level.

You can treat html as a simple string, but javascript needs to be run to get the results.

You must have a JavaScript engine (VM) to perform javascript sources.

The reason for using selenium is that you can use the javascript engine and DOM, which are the basic features of your browser.

Except selenium, javascript source should be performed by javascript source with javascript engine such as spider monkey and parsed the result, and if HTML is being processed within javascript, DOM should be handled as well.

I recommend using selenium for mental health.


2022-09-21 19:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.