-
Notifications
You must be signed in to change notification settings - Fork 0
Announcements
Developer From Jokela edited this page Sep 16, 2022
·
1 revision
Announcements list can be retrieved at /news/
.
Each announcement has classes margin-bottom well
.
Announcement element:
<div class="margin-bottom well">
<h3>
<span class="vismaicon vismaicon-sm vismaicon-filled vismaicon-info" title="Tärkeä tiedote"></span>
Wilman uusi osoite on tuusula.inschool.fi
</h3>
<p class="sub-text">Wilman uusi osoite on tuusula.inschool.fi</p>
<span class="horizontal-link-container small">
<a href="/!0249962/news/3262">Lue koko juttu</a>
(Ylläpidon tiedote)
</span>
<span class="horizontal-link-container pull-right">
<span class="vismaicon vismaicon-sm vismaicon-locked" title="Pysyvä tiedote"></span>
</span>
</div>
Possible data to extract:
- Important announcement?: Check if
span.vismaicon-info
exists - Permanent announcement?: Check if
span.vismaicon-locked
exists - Title of announcement:
h3
element text - Briefing text:
p.sub-text
element text - ID: hyperlink URL's last path
- Creator:
span.horizontal-link-container.small
element text, within "()"
Endpoint: /news/<id>
HTML Content:
<div class="panel-body">
<h2>
Wilman uusi osoite on tuusula.inschool.fi
</h2>
<p><strong>Wilman uusi osoite on tuusula.inschool.fi</strong></p>
<div class="margin-bottom hidden" id="news-content">
<p>Hei,</p>
<p>Wilman osoite muuttuu ja uusi osoite on</p>
<p>tuusula.inschool.fi </p>
<p>Ylläpito</p>
</div>
<div class="panel-body-padding-remover">
<iframe id="content-wrapper" style="width: 100%; border: 0px;"></iframe>
</div>
<hr />
<div class="margin-bottom">
Julkisesti, opettajille, opiskelijoille, henkilökunnalle, huoltajille ja johtokunnalle
</div>
<div class="horizontal-link-container">
<span class="vismaicon vismaicon-sm vismaicon-user"></span>
<span>
Ylläpitäjä
</span>
<span class="small semi-bold no-side-margin pull-right">Julkaistu 30.10.2020</span>
</div>
</div>
Data to extract:
- Title:
h2
element - Brief description:
p > strong
- News content:
#news-content
- Publisher:
horizontal-link-container > span:not(.vismaicon)
- Published timestamp:
span.small semi-bold
, date format dd.MM.yyyy