K
K
kommov2021-09-10 20:04:28
Python
kommov, 2021-09-10 20:04:28

How to use python + selenium to get text from a page if it is not in the page code?

When the page loads, the text appears. You can select it and copy it, or press the button and it will be in the clipboard. But how to pull it through selenium? The buffer option is not suitable, because work in multithreading. This text is nowhere in the page code, but it is displayed on the screen (as text, not as an image). This is apparently some kind of protection against bots? Can this be bypassed somehow?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alekssamos, 2021-09-11
@alekssamos

Not in the code, but through Javascript from the server it can be loaded in full through Ajax.

E
Evgeny Palych, 2021-09-11
@xzKakoyLogin

I remember this in mail ru services, each letter of the word "advertising" was in a separate tag. *Maybe they are still suffering like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question