Git Product home page Git Product logo

wiki_kalenderscraper's Introduction

🚨 This code is thankfully not used anymore. Please don't use it. 🚨

wiki_kalenderscraper

Kalenderscraper fuer wiki.muc.ccc.de/kalender, Export zu .ics und .json

Exportiert alle Events der Tabelle zu wiki_kalender.ics wiki_kalender_public.ics

Exportiert das naechste Event zu nextevent.json (fuer anzeiger)

python dependencies installieren:

nix-shell .

oder

poetry install
poetry shell

wiki_kalenderscraper's People

Contributors

derchrisuk avatar fpletz avatar dl1com avatar saerdnaer avatar sec42 avatar git-commit avatar tiefpunkt avatar robinkaranu avatar dependabot[bot] avatar schneider42 avatar

Stargazers

JT5D avatar

Watchers

 avatar Florian Anderiasch avatar  avatar  avatar Jan Klemkow avatar Michele Catalano avatar  avatar datenwolf avatar jo avatar  avatar Sebastian Steuer avatar  avatar  avatar Stephan Sedlmeier avatar  avatar Daniel avatar  avatar James Cloos avatar Robert C. Helling avatar  avatar argv avatar  avatar andz avatar  avatar Markus avatar RFguy avatar YannSpoeri avatar derandere avatar  avatar

wiki_kalenderscraper's Issues

Standarddauer für Events

Aktuell dauert jedes Event 0 minuten. In einem Kalender sieht das entsprechend blöd aus. Ich würde die Standarddauer auf 2 Stunden setzen

Zeitzone setzen

Das generierte .ics enhält keine Zeitzoneninformation. "ics Droid" wird dadurch verwirrt und importiert die Termine mit der Zeitzone "Bissau".

Habe q&d getestet, das .icd schnell wie folgt modifiziert:

< cal.ics perl -ple 's!^(DTSTART|DTEND);(.*)!$1;TZID=Europe/Berlin;$2!' > newcal.ics

Das Resultat importiert fehlerfrei und mit korrekter Zeitzone.

Tests hinzufügen

Bitte Test input und output zum Repo hinzufügen. Ziel: Automatisch feststellen ob code changes was kaputt machen oder nicht.

Einträge haben keine UIDs

Anscheinend mögen einige Kalender-Applikationen (Khal?) das nicht, wenn die einzelnen Events keine UID haben.

Doppelpunkte escapen

Aktuell gibt es auf der Kalender-Wikiseite einen Eintrag Save the date: µC³ Party. Bei mir im Kalender wird daraus nur noch "Save the date":

In der ics Datei steht es wie folgt:

BEGIN:VEVENT
SUMMARY:Save the date
DTSTART;VALUE=DATE-TIME:20161029T172300
DTEND;VALUE=DATE-TIME:20161029T192300
UID:[email protected]
DESCRIPTION:Public
LOCATION:Alle
END:VEVENT

UID ist nicht eindeutig

Anbei mal ein Auszug von aus dem ical File von heute:

BEGIN:VEVENT
SUMMARY:SSDeV
DTSTART;VALUE=DATE-TIME:20151211T193000
DTEND;VALUE=DATE-TIME:20151211T213000
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Freifunk Weihnachts Funk-Up
DTSTART;VALUE=DATE-TIME:20151214T200000
DTEND;VALUE=DATE-TIME:20151214T220000
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Vortrag: Smart Space UI
DTSTART;VALUE=DATE-TIME:20151215T201500
DTEND;VALUE=DATE-TIME:20151215T221500
UID:[email protected]
END:VEVENT
BEGIN:VEVENT
SUMMARY:Congress-Vorbereitungstreffen
DTSTART;VALUE=DATE-TIME:20151216T200000
DTEND;VALUE=DATE-TIME:20151216T220000
UID:[email protected]
END:VEVENT

Die UID ist bei allen Einträgen die selbe. Das sorgt bei meinem Kalender dafür, das nur ein Termin angezeigt wird. Hier im Repo ist der Bug anscheinend schon gefixed (vgl. e61c422) , aber auf uberbus liegt in /home/fpletz/wiki_kalenderscraper anscheinend noch ne alte Version...

@fpletz Hat das irgendeinen bestimmen Grund? Kannst du die mal aktualisieren?

Incorrect multi-day collation

If there are two consecutive lines with the same event, it appears that they are converted into a multi-day event, even if the days are not consecutive. This can (currently) be seen e.g. with the hackfriday on May 1st and May 8th:

BEGIN:VEVENT
SUMMARY:hackfriday
DTSTART;VALUE=DATE:20200501
DTEND;VALUE=DATE:20200503
UID:[email protected]
DESCRIPTION:Public
LOCATION:Hauptraum
URL:https://wiki.muc.ccc.de/hackfriday
END:VEVENT

Ganztägige Events

Events die im Kalender ohne Uhrzeit sehen sollten als ganztägige Events im Kalender landen.
Sofern ein Event mehrere Tage dauert, sollte dies mehreren Zeilen im wiki auch zusammengezogen werden. Hatten wir letzteren Fall eigentlich bisher schon?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.