

To use an attribute value other than 'href', use for example: 'img (CSS selector)Įxtract item description from element matching CSS selector. If set to 1, all item URLs will point to the input URL. If set to 0, URLs will not be included in the output. If omitted, the URL of the first matching element will be used. This is applied within the context of elements selected by item. To use an element's attribute value rather than text content, use for example: 'img To select the context element itself (element selected by item), pass ':scope'.Įxtract item URL from element matching CSS selector. If set to 0, titles will not be included in the output. If omitted, the text of the first matching element will be used. Cannot be used in combination with in_id_or_class.Įxtract item title from element matching CSS selector. Look inside element(s) matching this CSS expression (for example: div.news.

This translates to the following and string" or contains(concat(" "), " string ")]]

This is required.įind links inside elements whose id or class attribute matches this value. Web page URL containing links which we want to extract for our RSS feed. The form above uses the same parameters, so if you're unsure how to construct a URL, use the form and then examine the RSS feed URL that's produced. For most uses, supplying the page URL ( url) and a selector (either in_id_or_class or item) is enough.Įxample: extract.php?url=https%3A%2F%%2Farticles%2F&in_id_or_class=main_container When making HTTP requests, you can pass the following parameters to extract.php (either in a GET request or POST request).
