![]() If multiple matching items have the same URL, only the first encountered will be kept. Example: /article/įilter out any item whose title or description does not contain any of the supplied words or phrases. Pass 'url' to include a guid generated from the item URL, 'title' to have it generated from the item title, or 'url_title' use a combination of both.įilter out any item whose URL does not contain one of these substrings. No guid field is included in the output by default. Examples: 'img', 'img.main', 'img (extracts URL from data-src attribute instead of src) If omitted, no image will be included in the output. This is applied within the context of elements selected by item. 'j-M-Y'.Įxtract item image URL from element matching CSS selector. This should follow the createFromFormat pattern, e.g. ![]() treated as US format instead of European), you can specify the format it appears in here. ![]() To get the date from an attribute value rather than text content of the element, use for example: 'time the date is not recognised correctly (e.g. If omitted, the generated feed will not include item date. 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 date from element matching CSS selector. If omitted, the generated feed will not include item descriptions. 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. 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. #Online feed reader how to#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). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |