K
K
Kirill Gorelov2017-03-09 21:10:23
Parsing
Kirill Gorelov, 2017-03-09 21:10:23

How to parse search suggestions?

Hello. Guys, for experience and for knowledge in general, I want to learn how to parse search engine tips, but I don’t understand how to do it, from where to parse and in general.
Does anyone have experience with this not an easy task?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fadey001, 2017-03-22
@Fadey001

In chrome, you open the developer tools - F12
You write a request to the search engine and look where and what is sent.
Google, for example, sends requests to

https://www.google.ru/complete/search?sclient=psy-ab&newwindow=1&safe=off&biw=840&bih=589&q=hello&oq=&gs_l=&pbx=1&bav=on.2,or.r_cp.&bvm=bv.150120842,d.bGs&fp=340975d5227619b6&pf=p&gs_rn=64&gs_ri=psy-ab&gs_mss=%D0%BF%D0%B0h&tok=0mPi7H_lGIpBh7dz7hlFyQ&cp=5&gs_id=24&xhr=t&tch=1&ech=15&psi=uGDSWO_2CMb-6ASvx7PoDg.1490182331198.1

The request itself is passed in the q parameter.
But at request without parameters swears on the wrong request. It remains to find out where all the parameters come from (most often this is all right on the page). Next, you form a request with a keyword, substitute all the parameters and catch the answer with hints.
The algorithm is

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question