Selectors are at the core of scraping. It's a way to locate an element in a webpage.
It's a list of data properties to extract from the page, and the CSS selectors that correspond to them. You can find more information here.
Why do I need a selector?
Unique selectors are used by monitors to locate parts of interests from the webpage. This is how a monitor is able to extract data, and know when to trigger your webhook.
How to get selectors?
For the most common cases, our Companion browser extension should help you extract selectors just by clicking on elements on the webpage.
If you have more specific requirements, you can leverage the developer tools in Google Chrome to do that. You can get started here.
Can a selector stop working?
Selectors could be non reliable in the following cases:
If the website makes heavy use of random IDs and classes
If the website changes its structure often
When this happens, your monitor will extract incorrect data, or will stop working if it cannot find selectors anymore. You are able to investigate this issue by editing the monitor and extracting the data again, editing the selectors if necessary.