# Redirect to AMP page to bypass blocking
single_page_link: //link[@rel='amphtml']

skip_json_ld: yes

title: //h1[@class='headline']
author: //span[@itemprop='author']
date: substring-before(//span[@class='info-text'], ', <br>')
body: //div[@class='span2.article']

# Strip clutter
strip_id_or_class: flying-carpet-wrapper
strip_id_or_class: blurred
strip_id_or_class: ampstart-card
strip: //img[@class='slide__image'][1]
strip: //img[@class='slide__image'][2]
strip: //div[@class='inline-image__img']//img[1]
strip: //img[contains(concat(' ',normalize-space(@class),' '),' teaser-plus ')]
strip: //div[@amp-access='data.reduced']

# Tests
test_url: https://www.shz.de/deutschland-welt/politik/Therapien-gegen-Homo-und-Transsexualitaet-sollen-verboten-werden-id26742562.html
test_url: https://www.shz.de/lokales/schleibote/australische-pinguine-tragen-jetzt-pullis-aus-kappeln-id26733692.html