V
V
Vladimir2020-05-18 15:57:48
JavaScript
Vladimir, 2020-05-18 15:57:48

Why does the parser bug on the captcha and give the same data?

Good afternoon. Please tell me what could be the reason for this behavior? I start parsing, filter to the 404 page - if there is true / if not, then false - then captcha. Everything works fine with 404, but with captcha it stupidly gives out past results, I have recursion - so it turns into an endless loop.

return document.querySelector('.main-wrap__content') ? company : !!document.querySelector('.page404-info')

// !!document.querySelector('.page404-info')  - здесь true/false при этом если возвращает false мои дальнейшие проверки на массив попросту игнорируются

if(await data instanceof Array && await data.length)


Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2020-05-18
@HistoryART

I found the answer, I will correct it:
The block by which I determined the presence of captcha is present on the page, but it is blocked by captcha, you need to filter by the form of captcha as for me.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question