K
K
Kirill Rezanov2020-09-05 10:04:23
Google
Kirill Rezanov, 2020-09-05 10:04:23

What is the best way to write a script to show the position of the site in the search results?

Hello everyone, I need help, I don't know what to do anymore. I need to write a script that will allow, when entering the site address, a list of key queries and selecting the Russian region, to access search engines and find out information about the position of the site for the key query. And everything, it would seem, is simple, you take it, make a GET request and step into the search engines, then parse the page. If everything is fine with Google, it has a link in the output element direct to the resource, then for Yandex the link first leads to an internal service that processes the click on the link and only then redirects to the requested resource, i.e. it is no longer possible to parse the search page and pull out information, I know about Yandex.XML, but there are limits, some, for services that do this, work goes through the Google Search API and Yandex XML, but I can’t find the documentation for the Google Search API at all, and I can’t figure out from Yandex XML what needs to be done so that I can check any site. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-09-05
@MayorPlay

I can't find the Google Search API documentation at all

https://developers.google.com/custom-search/v1/overview
If everything is fine with Google, it has a link in the output element direct to the resource, then Yandex’s link first leads to an internal service

both have this and that,
and the script is simple - you display the position number and the URL of the site))
it's difficult to get the position number only) they don't share this kind of nasharu

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question