A
A
apiwi2020-06-24 19:52:22
Python
apiwi, 2020-06-24 19:52:22

How to parse answers from znanija.com?

How to implement the https://znanija.com parser (not advertising)? It is necessary that the user enters the text, the parser enters the site and drives this text into the search. After that, he gave the first answer to the user. Please tell us more. Without toxic, I really do not understand. (I know that you need to use BS4 and so on, but how?)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-06-24
@apiwi

Press F12, open the Network tab. Write a search query, send it. Look in the Network tab from which request the answers to the question came from. Spoiler, there is a check for JS and cookies included. Therefore, you make a request to the URL with the question through selenium.
https://znanija.com/app/ask?entry=top&q=THIS
QUESTION And from there you take the necessary data through find_element_by_

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question