Skip to main content

SE::Google::Position - Check website positions by keywords in Google

Overview of Google Position parser

The parser checks website positions by keywords in Google. Thanks to the SE::Google::Position parser, you can automatically check positions in Google search results using your own domain bases. Using the SE::Google::Position parser, you can easily, accurately, and quickly determine the position of a website in Google.

The A-Parser functionality allows you to save the parsing settings of the SE::Google::Position parser for further use (presets), set a parsing schedule, and much more. You can use automatic substitution of subqueries from files.

Saving results is possible in the form and structure that you need, thanks to the built-in powerful Template Toolkit template engine, which allows you to apply additional logic to the results and output data in various formats, including JSON, SQL, and CSV.

Use cases of Google Position parser

Working with API, part 1

An example of working with the A-Parser API using the SE::Google::Position parser

Another example of using SE::Google::Position

Determining the position of a website by keyword, as in the user's browser

Overview of presentation options

The article discusses 4 different presentation options for the result: text, CSV, JSON, HTML

How to find positions by keys?

Getting to know the SE::Google::Position parser and checking the position of a keyword in search results

List of collected data

  • Website position and link to the website page
  • List of all website positions and links to pages

Data collected by the SE::Google::Position parser

Capabilities

  • All capabilities of the SE::GoogleSE::Google parser
  • Automatically stops parsing when a website is found
  • Supports subdomain search
  • Ability to compare the desired position by domain, by main domain, and by full link
  • Collecting positions for several domains at once

Usage scenarios

  • Checking positions of your own websites and competitors' websites
  • Search for traffic pages of a website

Query examples

  • As queries, you need to specify the domain of the desired website and the search query separated by a space, for example:
lenta.ru новости  
lenta.ru новости онлайн
  • If you need to check one website for a list of queries, you can specify the domain in the query format:
lenta.ru $query

And use a simple list of keywords as queries.

  • To use several domains in the query at once, you need to specify a list of domains separated by commas and a space for the keyword, for example:
lenta.ru,ria.ru,notfound.com новости лента

The results will be saved in the $bulkcheck array. The Stop when found option is also supported, parsing will stop if positions are found for all domains.

Query substitutions

You can use built-in macros for automatic substitution of subqueries from files, for example, we want to check websites/website by a keyword database, specify several main queries:

ria.ru
lenta.ru
rbc.ru
yandex.ru

In the query format, specify a macro for substituting additional words from the Keywords.txt file, this method allows you to check a website database by a keyword database and get positions as a result:

$query {subs:Keywords}

This macro will create as many additional queries as there are in the file for each original search query, which in total will give [number of original queries (domains)] x [number of queries in the Keywords file] = [total number of queries] as a result of the macro operation.

Result output options

A-Parser supports flexible result formatting thanks to the built-in Template Toolkit template engine, which allows it to output results in any form, as well as in a structured form, such as CSV or JSON.

Exporting a list of positions

Getting the result in the form of:

desired domain - keyword: position number in the search results

Result format:

$domain - $key: $position\n

Result example:

lenta.ru - новости  : 6
lenta.ru - новости онлайн: 7
...

Simultaneous checking of several domains (batch checking)

Information about all domains when checking multiple domains at once is contained in the $bulkcheck array.

Result format:

$bulkcheck.format('$domain - $position\n')

Example request: lenta.ru,ria.ru,notfound.com news lenta

Example result:

lenta.ru - 1
ria.ru - 3
notfound.com - 0

Same as in SE::Google.

Same as in SE::Google.

Same as in SE::Google.

Keyword competition

Same as in SE::Google.

Same as in SE::Google.

Saving in SQL format

Same as in SE::Google.

Dumping results in JSON

Same as in SE::Google.

Results processing

A-Parser allows you to process the results directly during parsing, in this section we have provided the most popular cases for the SE::Google::Position parser

Saving domains without zero positions

The example of checking multiple domains at once was taken as a basis (see above in the result output options) and a filter was added.

Add a filter and select the position output variable from the drop-down list. Select type: >. Then you need to enter 0 in "Number". With this filter, you can remove all results with a zero position.

Download example

How to import an example into A-Parser

eJx1VNtu2zAM/RVDCNAVyIJ2a4HBDwPSYhk2ZE3Wy1OaB9WiUy2y6Ely2szwv4+S
ZTvtuhdZJA/Jw4tcM8ft1i4NWHCWpaualeHOUnbzJU2/Im4UpOkSrXQSdfI+ueE7
SAQWXGqbPEn3iJVLePIHDCZlhLExK7mxYHzI1ZuRCCIg55VybFwzty+BUuIOjJEC
yCgFyTmagjsiFGBsx1XlYaOHSm2zR8i2kxbx7mjUMiJ+o47E/b0+OmbN/6NXFkqD
z/shcs6VhQOPXCoHhuyRQrpifWpfY1fLehyht63f5wOyJ3THMsBSZkFb1qzXXUQ7
C/x9TeXpJLa+N/pW32LLAwb1jKQrXoROCO7AW7tGHE/cs4/AhQjUuGoz+EEMWe+0
/B3IaSQsXY0EOzNYkMpBCOCV+47dio2C7Autgu/P1ie2bMwsUZ1xIiJeWyS1hTs0
i9AD0tcM9VSpOexADbAQ/6KSStDWTHNy+hYd34Ys/onR9OUdpqKZPxni0EcJ0sXi
x+AlcI4bqlw8UN1KFtKRbC+x0i7ObwtQ9j278j0r0ECfJkaO2ekxlaD9gg0jm5aD
6kUZL8byUpmhzuVmEZe2Q1b6ll7sQl9iUSrwdelKqbFf5uthPaY2jsELA8HXzpch
hS+9e4rMISr7/aalWhpJ63fuCRbUycOsMWTGlbq7nh9a2LBSJCjQjk9MNTYyfDS6
nDorJhkWyX11cvZRhBPC+WG4n52Gs9V8aqEP4Twf3KLZzyijl7BB2lHqU7Puf0D9
r61++zeU1g2twC+7bOG+Xx5MOmq8DYjT5i+HCcki

tip

See also: Results filters

Same as in SE::Google.

Same as in SE::Google.

Extraction of domains

Same as in SE::Google.

Removing tags from anchors and snippets

Same as in SE::Google.

Same as in SE::Google.

Possible settings

Supports all settings of the SE::GoogleSE::Google parser, as well as additionally:

Parameter nameDefault valueDescription
Pages count1Number of parsing pages of the search results(from 1 to 10)
Links per page20Number of links in the search results per page(10 / 20 / 30 / 50 / 100)
Result format$domain - $key: $position\nDefault result output format
Stop when foundStop parsing if the domain is found, will not move on to the next pages
Match typeExact domainPossibility to compare the search position by domain, by top-level domain and by full link(Exact domain / Top level domain / Exact url)