U
U
Us592020-04-18 21:07:10
JavaScript
Us59, 2020-04-18 21:07:10

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: 492459884e9dbd8bd2e1e5bb92796d45from script, which is created via js by reference.
5e9b417818980599485456.png

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

1 answer(s)
A
alexalexes, 2020-04-19
@alexalexes

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 question

Ask a Question

731 491 924 answers to any question