# useful SEO XPath's & CSS selectors X

If you are crawling website for SEO purposes, whether it is with [rcrawler](/crawl/rcrawler.md),  [rvest](/crawl/rvest.md) or another way. You will probably need to use some CSS/Xpath selector to extract the useful bit from each page.\
\
here is a collection of the most useful ones. Feel free to reach out if you think it misses important ones.

| Value                  | xpath                                 | CSS                              |
| ---------------------- | ------------------------------------- | -------------------------------- |
| Robots (Index/Noindex) | //meta\[@name='robots']/@content      | head > meta\[rel="robots"]       |
| canonical tag          | //link\[@rel='canonical']/@href       | head > link\[rel="canonical"]    |
| Page Title             | //title                               | head > title                     |
| Meta Description       | //meta\[@name='description']/@content | head > meta\[name="description"] |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.rforseo.com/ressources/useful-xpaths-x.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
