W
W
warnerbrowsers2017-02-23 22:10:17
Parsing
warnerbrowsers, 2017-02-23 22:10:17

Do I need to know JS for parsing?

Hello! The question is to broaden one's horizons. When parsing sites (in PHP, Python, Ruby, etc), which have a lot of JS and AJAX, headless browsers, Selenium, etc. are used. Is it necessary to study JS itself in order to better understand what is happening inside, or is it enough to consider this toolkit as a "black box"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2017-02-23
@warnerbrowsers

It is necessary, and even more so if headless browsers are used, and not HTTP.
Well, tell me: how do you solve a standard problem, the page is loaded, then AJAX is performed, and only after that the required element appears in the DOM, so it means a standard type event OnDocumentComplete, etc. is useless here, because when it "lights up", then the element will not be there yet?
Although, knowledge of the DOM itself is already knowledge of JS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question