srehwald / eat-api

Simple static API for some (student) food places in Munich.
https://srehwald.github.io/eat-api/
MIT License
14 stars 20 forks source link

FMI Fixing get PDF failed due to new <strong> tag #33

Closed raabf closed 6 years ago

raabf commented 6 years ago

The FMI has added a new strong tag to the text of the a tag:

    <a href="https://www.wilhelm-gastronomie.de/wpcontent/uploads/2018/04/Garching_Speiseplan_KW_19_2018.pdf"> 
        <strong>Garching_Speiseplan_KW_19_2018</strong>
    </a>

As a result the xpath do not find the link any more. Well we could implement the new strong node, but it migtht will be removed again. So, instead i seach for Speiseplan in the href instead of the text, which works quite well.

srehwald commented 6 years ago

good idea!