Answer the question
In order to leave comments, you need to log in
How to find the value that is generated in js?
There is a site, I open the manager - the Network tab, I look at the actions when loading. First of all, HTML is loaded, then I see files like this being loaded: Link
This js code, as I understand it, generates <script>
, because after loading the HTML, various data is added to it, apparently generated by js.
In my case, I need to get the value: 492459884e9dbd8bd2e1e5bb92796d45
from script
, which is created via js by reference.
Question: How to reproduce this js code to understand what data it generated?
As I understand it, this particular js generates the necessary data: I just did a search in the code: callback=s_c_il
.
ps I had no experience with js, I don’t know how this system works, a lot of code, and I don’t even understand how to reproduce this js ... where does it start from ...............
Answer the question
In order to leave comments, you need to log in
If the value of the v44 variable will have a predictable position on the page (either in cookies or in the global JS object - window) after all the operations of preparing and loading it, then it is quite possible to get the desired result if you use the Selenium framework . It allows you to create an environment for receiving a page similar to a full-fledged browser and allows you to manipulate the components of the environment, including for extracting data.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question