I want to download an iCal file to my app.
It works fine, but the link to this file will change every 6 months.
The page/link that inherits the link to the file will not change, so I want to look into the code of the main page and find the link to the iCal file to download it.
I think this may work best with javascript, but I have no clue about that. There is also no tag or id I could search for.
This is the page to search for the link:
https://stundenplan.hs-furtwangen.de/splan/std?act=tt&lan=de&pu=-1&sel=pg&og=1433&pg=CNB4
The search pattern would be "/splan/ical"
There I found the link to the file.
In the end I would need "/splan/ical?type=pg&puid=6&pgid=1617&lan=de"
stored somewhere.
Right now I just use the Downloadmanager
to get the file, no html-code is stored anywhere.
Hope someone can help. Thanks.
EDIT:
Here is the part of the html source that contains the link (first href):
<tr>
<td />
<td colspan="1"><a
href="/splan/ical?type=pg&puid=8&pgid=2505&lan=de"><img
style="align: middle; border: 0;" src="/splan/pictures/ical.png"
alt="ics feed" height="20" /></a>
<a href="http://www.progotec.de/site/splandok/iCal-Anbindung"
target="_blank"><img style="align: middle; border: 0;"
alt="Hilfe zu ICal"
src="/splan/pictures/hilfe.png"
title="Hilfe zu ICal" height="20" /></a>
</td>
</tr>