R
R
Roman2019-10-03 12:11:50
PHP
Roman, 2019-10-03 12:11:50

The simplehtmldom library doesn't find all selectors?

There are a bunch of pages that are exactly the same in structure. Let's take Page A as an example. There are 177 selectors with the class "list-element" on it. When trying to parse it with the simplehtmldom library, for some reason, only 55 (and exactly the first!) of such elements are found. If you save the page code to a file and open it from a local disk, there are already 61 pieces. I display the contents of these elements in a loop, it shows 55 and that's it!
If we take another, say page B, then the situation is similar with it. How many elements finds and then a thrashing.
In PHP, the output of all errors is worth it, but it does not show anything. Tried to change the library to earlier versions - does not help.
Well, a stupid search for the occurrence of "list-element" shows exactly the number of elements that should be.
What can be, the whole brain has already broken.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Gorelov, 2019-10-03
@Kirill-Gorelov

I'll tell you more. I have never started simplehtmldom))
Regular games and only hardcore have always saved me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question